public interface ConnectorHistoryApi
When connectorQueued(String, UUID, String, List, boolean)
is called a new history record for the connector is created.
Subsequent calls that affect the currently executing connector will update this history record. Attempts to update a history
record in the NOT_RUNNING state will fail with an
IllegalStateException
.
connectorCompleted(String, long)
. This allows for implementations which cache updates to the current execution without
requiring immediate writes which are undesirable.
AuditReaderApi
using the clientId obtained from
ConnectorExecutionRecord
. Audit information for the clientId could have been purged depending on system configuration.
CONNECTOR_HISTORY_RECORD_EMPTY_EXECUTIONS
property to true
.Modifier and Type | Field and Description |
---|---|
static String |
CONNECTOR_ABANDONMENT_DELAY |
static String |
CONNECTOR_HISTORY_RECORD_EMPTY_EXECUTIONS |
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.
|
static long |
delayBeforeCheckingAbandonment() |
ConnectorExecutionRecord |
getCurrentExecutionRecord(String connectorName)
Note, the connector does not have to be defined.
|
Iterable<ConnectorExecutionRecord> |
getHistory(String connectorName) |
ConnectorExecutionRecord |
getLatestHistory(String connectorName) |
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 . |
static final String CONNECTOR_HISTORY_RECORD_EMPTY_EXECUTIONS
static final String CONNECTOR_ABANDONMENT_DELAY
void connectorQueued(String connectorName, UUID clientId, String workflow, List<String> extraRunInfo, boolean external) throws AttivioException
connectorName
- clientId
- the clientId to associate with this iteration of the connectorworkflow
- extraRunInfo
- additional metadata to associate with the new executionexternal
- true
if the connector is an external connectorAttivioException
- with if connector is already executingvoid 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.connectorName
- timestamp
- the timestamp associated with this connector execution.AttivioException
void connectorPaused(String connectorName) throws AttivioException
connectorName
- AttivioException
void connectorResumed(String connectorName) throws AttivioException
connectorName
- AttivioException
void connectorCompleting(String connectorName) throws AttivioException
connectorName
- AttivioException
void connectorCompleted(String connectorName, long finalDocCount) throws AttivioException
ConnectorExecutionRecord.getFinishTime()
for the history record.connectorName
- finalDocCount
- AttivioException
void connectorReset(String connectorName) throws AttivioException
ConnectorExecutionStatus.RESET
.connectorName
- AttivioException
void updateSentCount(String connectorName, long docCount) throws AttivioException
connectorName
.connectorName
- docCount
- AttivioException
RuntimeException
- if connector is not currently running.void updateExtraRunInfo(String connectorName, List<String> extraRunInfo) throws AttivioException
connectorName
. The existing run information is replaced with extraRunInfo
.connectorName
- extraRunInfo
- RuntimeException
- if connector is not currently running.AttivioException
void clearHistory(String connectorName) throws AttivioException
connectorName
- AttivioException
ConnectorExecutionRecord getLatestHistory(String connectorName) throws AttivioException
connectorName
- ConnectorExecutionRecord
with the latest finish
time or null
if the connector has never completed an execution.AttivioException
Iterable<ConnectorExecutionRecord> getHistory(String connectorName) throws AttivioException
connectorName
- AttivioException
ConnectorExecutionRecord getCurrentExecutionRecord(String connectorName)
connectorName
- ConnectorExecutionRecord
of the currently executing connector connectorName
or null
if
the connector is not currently executing.static long delayBeforeCheckingAbandonment()
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.