Class AuditLogDestination

  • Direct Known Subclasses:
    FVTAuditLogDestination, OMRSAuditLogDestination

    public abstract class AuditLogDestination
    extends java.lang.Object
    AuditLogDestination provides the support to push audit log records to the desired locations for either storage or processing.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.String> originatorProperties  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AuditLogDestination()
      Default constructor for subclasses to give them an opportunity to build the originator properties.
        AuditLogDestination​(java.util.Map<java.lang.String,​java.lang.String> originatorProperties)
      The normal constructor takes the description of the process/server that is using the audit log.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void addLogRecord​(AuditLogRecord logRecord)
      Log an audit log record for an event, decision, error, or exception detected by the open metadata services.
      java.util.Map<java.lang.String,​java.lang.String> getOriginatorProperties()
      Return the map of properties used to describe the originator process/server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • originatorProperties

        protected java.util.Map<java.lang.String,​java.lang.String> originatorProperties
    • Constructor Detail

      • AuditLogDestination

        protected AuditLogDestination()
        Default constructor for subclasses to give them an opportunity to build the originator properties.
      • AuditLogDestination

        public AuditLogDestination​(java.util.Map<java.lang.String,​java.lang.String> originatorProperties)
        The normal constructor takes the description of the process/server that is using the audit log. It is added to every log record.
        Parameters:
        originatorProperties - map of name-value pairs
    • Method Detail

      • getOriginatorProperties

        public java.util.Map<java.lang.String,​java.lang.String> getOriginatorProperties()
        Return the map of properties used to describe the originator process/server.
        Returns:
        map of name-value pairs
      • addLogRecord

        public abstract void addLogRecord​(AuditLogRecord logRecord)
        Log an audit log record for an event, decision, error, or exception detected by the open metadata services.
        Parameters:
        logRecord - the log record