Enum Class AssetLineageAuditCode
java.lang.Object
java.lang.Enum<AssetLineageAuditCode>
org.odpi.openmetadata.accessservices.assetlineage.auditlog.AssetLineageAuditCode
- All Implemented Interfaces:
Serializable
,Comparable<AssetLineageAuditCode>
,Constable
,AuditLogMessageSet
The AssetLineageAuditCode is used to define the message content for the OMRS Audit Log.
The 5 fields in the enum are:
- Log Message Id - to uniquely identify the message
- Severity - is this an event, decision, action, error or exception
- Log Message Text - includes placeholder to allow additional values to be captured
- SystemAction - describes the result of the situation
- UserAction - describes how a user should correct the situation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOMAS-ASSET-LINEAGE-0010 The Asset Lineage OMAS retrieves entity's asset context.OMAS-ASSET-LINEAGE-0011 The Asset Lineage OMAS is configured with property name {} and value {}OMAS-ASSET-LINEAGE-0008 The Asset Lineage OMAS records error while processing entity.OMAS-ASSET-LINEAGE-0007 The Asset Lineage OMAS records information about entity.OMAS-ASSET-LINEAGE-0005 The event could not be processed.OMAS-ASSET-LINEAGE-0012 The access service was passed invalid value in access service's options.OMAS-ASSET-LINEAGE-0009 Error while trying to use AssetLineagePublisher instance.OMAS-ASSET-LINEAGE-0006 The Asset Lineage OMAS records information about processing sequence.OMAS-ASSET-LINEAGE-0002 The Asset Lineage OMAS has completed initialization.OMAS-ASSET-LINEAGE-0001 The Asset Lineage Open Metadata Access Service (OMAS) is initializing a new server instance.OMAS-ASSET-LINEAGE-0004 The Asset Lineage Open Metadata Access Service (OMAS) is unable to initialize a new instance; error message is {0} from server {1}OMAS-ASSET-LINEAGE-0003 The local server has requested shut down of an Asset Lineage OMAS server instance. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a message definition object for logging.getMessageDefinition
(String... params) Retrieve a message definition object for logging.toString()
JSON-style toStringstatic AssetLineageAuditCode
Returns the enum constant of this class with the specified name.static AssetLineageAuditCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SERVICE_INITIALIZING
OMAS-ASSET-LINEAGE-0001 The Asset Lineage Open Metadata Access Service (OMAS) is initializing a new server instance. -
SERVICE_INITIALIZED
OMAS-ASSET-LINEAGE-0002 The Asset Lineage OMAS has completed initialization. -
SERVICE_SHUTDOWN
OMAS-ASSET-LINEAGE-0003 The local server has requested shut down of an Asset Lineage OMAS server instance. -
SERVICE_INSTANCE_FAILURE
OMAS-ASSET-LINEAGE-0004 The Asset Lineage Open Metadata Access Service (OMAS) is unable to initialize a new instance; error message is {0} from server {1} -
EVENT_PROCESSING_EXCEPTION
OMAS-ASSET-LINEAGE-0005 The event could not be processed. -
PUBLISH_PROCESS_INFO
OMAS-ASSET-LINEAGE-0006 The Asset Lineage OMAS records information about processing sequence. -
ENTITY_INFO
OMAS-ASSET-LINEAGE-0007 The Asset Lineage OMAS records information about entity. -
ENTITY_ERROR
OMAS-ASSET-LINEAGE-0008 The Asset Lineage OMAS records error while processing entity. -
PUBLISH_EVENT_ERROR
OMAS-ASSET-LINEAGE-0009 Error while trying to use AssetLineagePublisher instance. -
ASSET_CONTEXT_INFO
OMAS-ASSET-LINEAGE-0010 The Asset Lineage OMAS retrieves entity's asset context. -
CONFIGURED_PUBLISHER_BATCH_SIZE
OMAS-ASSET-LINEAGE-0011 The Asset Lineage OMAS is configured with property name {} and value {} -
INVALID_PUBLISHER_BATCH_SIZE
OMAS-ASSET-LINEAGE-0012 The access service was passed invalid value in access service's options.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMessageDefinition
Retrieve a message definition object for logging. This method is used when there are no message inserts.- Specified by:
getMessageDefinition
in interfaceAuditLogMessageSet
- Returns:
- message definition object.
-
getMessageDefinition
Retrieve a message definition object for logging. This method is used when there are values to be inserted into the message.- Specified by:
getMessageDefinition
in interfaceAuditLogMessageSet
- Parameters:
params
- array of parameters (all strings). They are inserted into the message according to the numbering in the message text.- Returns:
- message definition object.
-
toString
JSON-style toString- Overrides:
toString
in classEnum<AssetLineageAuditCode>
- Returns:
- string of property names and values for this enum
-