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 Summary
Constructors Constructor Description DefaultConnectorExecutionRecord()DefaultConnectorExecutionRecord(java.lang.String name)
-
Method Summary
All 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
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceConnectorExecutionRecord- Returns:
- the connector name;
-
getClientId
public java.util.UUID getClientId()
- Specified by:
getClientIdin interfaceConnectorExecutionRecord- Returns:
- the client id associated with the execution of the connector
-
getStatus
public ConnectorExecutionStatus getStatus()
Note, this method will returnConnectorExecutionStatus.NOT_RUNNINGfor all historical records.- Specified by:
getStatusin interfaceConnectorExecutionRecord- Returns:
- the execution status for the connector.
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfaceConnectorExecutionRecord- Returns:
- the time the connector started running or -1 if never started.
-
getFinishTime
public long getFinishTime()
- Specified by:
getFinishTimein interfaceConnectorExecutionRecord- Returns:
- the time the connector finished, or -1 if never finished.
-
getDocumentsSent
public 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 interfaceConnectorExecutionRecord- Returns:
- the number of documents sent by the connector, or -1 if never set
-
getWorkflow
public java.lang.String getWorkflow()
- Specified by:
getWorkflowin interfaceConnectorExecutionRecord- Returns:
- the workflow that was used for ingestion
-
getExtraRunInfo
public java.util.List<java.lang.String> getExtraRunInfo()
- Specified by:
getExtraRunInfoin interfaceConnectorExecutionRecord- Returns:
- list of arbitrary metadata attached to this execution
-
isExternal
public boolean isExternal()
External connectors are controlled by 3rd party code and provide limited monitoring and control capability. External connectors implement theConnectorMonitorScannerinterface.- Specified by:
isExternalin interfaceConnectorExecutionRecord- Returns:
trueif the connector was executed externally.
-
getTimestamp
public long getTimestamp()
- Specified by:
getTimestampin interfaceConnectorExecutionRecord- 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-