Package com.attivio.platform.store
Class DefaultConnectorExecutionRecord
- java.lang.Object
- 
- com.attivio.platform.store.DefaultConnectorExecutionRecord
 
- 
- All Implemented Interfaces:
- ConnectorExecutionRecord,- java.io.Serializable
 
 public class DefaultConnectorExecutionRecord extends java.lang.Object implements ConnectorExecutionRecord - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultConnectorExecutionRecord()DefaultConnectorExecutionRecord(java.lang.String name)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.UUIDgetClientId()longgetDocumentsSent()Note, this value is updated periodically (5s by default) at runtime (not on every document sent) and is not guaranteed to be the latest value.java.util.List<java.lang.String>getExtraRunInfo()longgetFinishTime()java.lang.StringgetName()longgetStartTime()ConnectorExecutionStatusgetStatus()Note, this method will returnConnectorExecutionStatus.NOT_RUNNINGfor all historical records.longgetTimestamp()java.lang.StringgetWorkflow()booleanisExternal()External connectors are controlled by 3rd party code and provide limited monitoring and control capability.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() - Specified by:
- getNamein interface- ConnectorExecutionRecord
- Returns:
- the connector name;
 
 - 
getClientIdpublic java.util.UUID getClientId() - Specified by:
- getClientIdin interface- ConnectorExecutionRecord
- Returns:
- the client id associated with the execution of the connector
 
 - 
getStatuspublic ConnectorExecutionStatus getStatus() Note, this method will returnConnectorExecutionStatus.NOT_RUNNINGfor all historical records.- Specified by:
- getStatusin interface- ConnectorExecutionRecord
- Returns:
- the execution status for the connector.
 
 - 
getStartTimepublic long getStartTime() - Specified by:
- getStartTimein interface- ConnectorExecutionRecord
- Returns:
- the time the connector started running or -1 if never started.
 
 - 
getFinishTimepublic long getFinishTime() - Specified by:
- getFinishTimein interface- ConnectorExecutionRecord
- Returns:
- the time the connector finished, or -1 if never finished.
 
 - 
getDocumentsSentpublic long getDocumentsSent() Note, this value is updated periodically (5s by default) at runtime (not on every document sent) and is not guaranteed to be the latest value. To get the latest, most accurate value the Audit API should be used.- Specified by:
- getDocumentsSentin interface- ConnectorExecutionRecord
- Returns:
- the number of documents sent by the connector, or -1 if never set
 
 - 
getWorkflowpublic java.lang.String getWorkflow() - Specified by:
- getWorkflowin interface- ConnectorExecutionRecord
- Returns:
- the workflow that was used for ingestion
 
 - 
getExtraRunInfopublic java.util.List<java.lang.String> getExtraRunInfo() - Specified by:
- getExtraRunInfoin interface- ConnectorExecutionRecord
- Returns:
- list of arbitrary metadata attached to this execution
 
 - 
isExternalpublic boolean isExternal() External connectors are controlled by 3rd party code and provide limited monitoring and control capability. External connectors implement theConnectorMonitorScannerinterface.- Specified by:
- isExternalin interface- ConnectorExecutionRecord
- Returns:
- trueif the connector was executed externally.
 
 - 
getTimestamppublic long getTimestamp() - Specified by:
- getTimestampin interface- ConnectorExecutionRecord
- Returns:
- the timestamp associated with this connector execution. The records for a full connector execution followed by incremental executions will all have the same timestamps.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-