Class OMRSAuditLogStoreConnectorBase

java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.repositoryservices.connectors.stores.auditlogstore.OMRSAuditLogStoreConnectorBase
All Implemented Interfaces:
OMRSAuditLogStore

public abstract class OMRSAuditLogStoreConnectorBase extends org.odpi.openmetadata.frameworks.connectors.ConnectorBase implements OMRSAuditLogStore
OMRSAuditLogStoreConnectorBase is the base class for connectors that support the OMRSAuditLog. It has implementations of the query methods that throw "function not supported". This means that log destinations that do not support queries can ignore these methods. It also supports the start and stop method for the connector which only need to be overridden if the connector has work to do at these times
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

    org.odpi.openmetadata.frameworks.connectors.ConnectorBase.ProtectedConnection
  • Field Summary

    Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

    connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve a specific audit log record.
    getAuditLogRecordsByComponent(String component, Date startDate, Date endDate, int offset, int maximumRecords)
    Retrieve a list of log records written by a specific component.
    getAuditLogRecordsBySeverity(String severity, Date startDate, Date endDate, int offset, int maximumRecords)
    Retrieve a list of log records that have specific severity.
    getAuditLogRecordsByTimeStamp(Date startDate, Date endDate, int offset, int maximumRecords)
    Retrieve a list of log records written in a specified time period.
    Return the name of this audit log destination.
    protected String
    getJSONLogRecord(OMRSAuditLogRecord logRecord, String methodName)
    Create JSON version of the log record.
    Return the list of supported severities that this destination is configured to support.
    void
    initialize(String connectorInstanceId, org.odpi.openmetadata.frameworks.connectors.properties.ConnectionProperties connectionProperties)
    Call made by the ConnectorProvider to initialize the Connector with the base services.
    protected boolean
    Should the record be written to this destination?
    storeLogRecord(org.odpi.openmetadata.frameworks.auditlog.AuditLogRecord logRecord)
    Store the audit log record in the audit log store.
    abstract String
    Store the audit log record in the audit log store.
    protected void
    Validate that the log record supplied by the OMRS is properly filled out.

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

    disconnect, equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initializeConnectedAssetProperties, isActive, start, toString

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector

    clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait