Class DefaultConnectorExecutionRecord

    • Constructor Detail

      • DefaultConnectorExecutionRecord

        public DefaultConnectorExecutionRecord()
      • DefaultConnectorExecutionRecord

        public DefaultConnectorExecutionRecord​(java.lang.String name)
    • Method Detail

      • getClientId

        public java.util.UUID getClientId()
        Specified by:
        getClientId in interface ConnectorExecutionRecord
        Returns:
        the client id associated with the execution of the connector
      • 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:
        getDocumentsSent in interface ConnectorExecutionRecord
        Returns:
        the number of documents sent by the connector, or -1 if never set
      • getExtraRunInfo

        public java.util.List<java.lang.String> getExtraRunInfo()
        Specified by:
        getExtraRunInfo in interface ConnectorExecutionRecord
        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 the ConnectorMonitorScanner interface.
        Specified by:
        isExternal in interface ConnectorExecutionRecord
        Returns:
        true if the connector was executed externally.
      • getTimestamp

        public long getTimestamp()
        Specified by:
        getTimestamp in 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object