Class OMRSAuditLogDestination
java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.AuditLogDestination
org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLogDestination
OMRSAuditLogDestination provides information needed to log records to the configured audit log destinations
for a specific server instance.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.auditlog.AuditLogDestination
originatorProperties
-
Constructor Summary
ConstructorDescriptionOMRSAuditLogDestination
(String localServerName, String localServerType, String localOrganizationName, List<OMRSAuditLogStore> auditLogStores) Initialize the static values used in all log records. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLogRecord
(AuditLogRecord logRecord) Log an audit log record for an event, decision, error, or exception detected by the open metadata services.void
setLocalMetadataCollectionId
(String localMetadataCollectionId) Set up the local metadata collection id.Methods inherited from class org.odpi.openmetadata.frameworks.auditlog.AuditLogDestination
getOriginatorProperties
-
Constructor Details
-
OMRSAuditLogDestination
public OMRSAuditLogDestination(String localServerName, String localServerType, String localOrganizationName, List<OMRSAuditLogStore> auditLogStores) Initialize the static values used in all log records. These values help to pinpoint the source of messages when audit log records from many servers are consolidated into centralized operational tooling.- Parameters:
localServerName
- name of the local serverlocalServerType
- type of the local serverlocalOrganizationName
- name of the organization that owns the local serverauditLogStores
- list of destinations for the audit log records
-
-
Method Details
-
setLocalMetadataCollectionId
Set up the local metadata collection id. This is null if there is no local repository.- Parameters:
localMetadataCollectionId
- String unique identifier for the metadata collection
-
addLogRecord
Log an audit log record for an event, decision, error, or exception detected by the open metadata services.- Specified by:
addLogRecord
in classAuditLogDestination
- Parameters:
logRecord
- the log record
-