public class MockConnectorHistory extends Object implements ConnectorHistoryApi
CONNECTOR_ABANDONMENT_DELAY, CONNECTOR_HISTORY_RECORD_EMPTY_EXECUTIONS
Constructor and Description |
---|
MockConnectorHistory() |
Modifier and Type | Method and Description |
---|---|
void |
clearHistory(String connectorName)
Removes all history associated with the connector.
|
void |
connectorCompleted(String connectorName,
long finalDocCount)
The connector has completed -- all documents have been fully processed.
|
void |
connectorCompleting(String connectorName)
The connector is completing -- all documents have been sent but have not finished being processed.
|
void |
connectorPaused(String connectorName)
A node has paused the connector.
|
void |
connectorQueued(String connectorName,
UUID clientId,
String workflow,
List<String> extraRunInfo,
boolean external)
The connector has been submitted for execution on an AIE node.
|
void |
connectorReset(String connectorName)
Indicates that the incremental state of the connector has been reset.
|
void |
connectorResumed(String connectorName)
A node has resumed a paused connector.
|
void |
connectorStarted(String connectorName,
long timestamp)
A node has started executing the connector.
|
ConnectorExecutionRecord |
getCurrentExecutionRecord(String connectorName)
Note, the connector does not have to be defined.
|
Iterable<ConnectorExecutionRecord> |
getHistory(String connectorName) |
ConnectorExecutionRecord |
getLatestHistory(String connectorName) |
void |
reset() |
void |
updateExtraRunInfo(String connectorName,
List<String> extraRunInfo)
Updates the extraRunInfo for
connectorName . |
void |
updateSentCount(String connectorName,
long docCount)
Updates the number of documents sent by
connectorName . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delayBeforeCheckingAbandonment
public void connectorQueued(String connectorName, UUID clientId, String workflow, List<String> extraRunInfo, boolean external) throws AttivioException
connectorQueued
in interface ConnectorHistoryApi
clientId
- the clientId to associate with this iteration of the connectorextraRunInfo
- additional metadata to associate with the new executionexternal
- true
if the connector is an external connectorAttivioException
- with if connector is already executingpublic void connectorStarted(String connectorName, long timestamp) throws AttivioException
timestamp
parameter is used to
associate a connector execution and subsequent incremental executions with each other. It will generally be the
start time of the baseline connector execution.connectorStarted
in interface ConnectorHistoryApi
timestamp
- the timestamp associated with this connector execution.AttivioException
public void connectorPaused(String connectorName) throws AttivioException
connectorPaused
in interface ConnectorHistoryApi
AttivioException
public void connectorResumed(String connectorName) throws AttivioException
connectorResumed
in interface ConnectorHistoryApi
AttivioException
public void connectorCompleting(String connectorName) throws AttivioException
connectorCompleting
in interface ConnectorHistoryApi
AttivioException
public void connectorCompleted(String connectorName, long finalDocCount) throws AttivioException
ConnectorExecutionRecord.getFinishTime()
for the history record.connectorCompleted
in interface ConnectorHistoryApi
AttivioException
public void updateSentCount(String connectorName, long docCount) throws AttivioException
connectorName
.updateSentCount
in interface ConnectorHistoryApi
AttivioException
public void clearHistory(String connectorName) throws AttivioException
clearHistory
in interface ConnectorHistoryApi
AttivioException
public ConnectorExecutionRecord getLatestHistory(String connectorName)
getLatestHistory
in interface ConnectorHistoryApi
ConnectorExecutionRecord
with the latest finish
time or null
if the connector has never completed an execution.public Iterable<ConnectorExecutionRecord> getHistory(String connectorName)
getHistory
in interface ConnectorHistoryApi
public ConnectorExecutionRecord getCurrentExecutionRecord(String connectorName)
getCurrentExecutionRecord
in interface ConnectorHistoryApi
ConnectorExecutionRecord
of the currently executing connector connectorName
or null
if
the connector is not currently executing.public void reset()
public void connectorReset(String connectorName) throws AttivioException
ConnectorExecutionStatus.RESET
.connectorReset
in interface ConnectorHistoryApi
AttivioException
public void updateExtraRunInfo(String connectorName, List<String> extraRunInfo) throws AttivioException
connectorName
. The existing run information is replaced with extraRunInfo
.updateExtraRunInfo
in interface ConnectorHistoryApi
AttivioException
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.