Class OMRSEventV1
java.lang.Object
org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
org.odpi.openmetadata.repositoryservices.events.beans.v1.OMRSEventV1
- All Implemented Interfaces:
Serializable
OMRSEventV1 is the OMRSEvent payload for version 1 of the open metadata and governance message exchange.
It has different sections for the different types of event.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor ensures the protocol version id is set in the superclass. -
Method Summary
Modifier and TypeMethodDescriptionReturn details about the event originator.Return the timestamp for when the event was created.voidsetErrorSection(OMRSEventV1ErrorSection errorSection) voidsetEventCategory(OMRSEventCategory eventCategory) voidsetInstanceEventSection(OMRSEventV1InstanceSection instanceEventSection) voidsetOriginator(OMRSEventOriginator originator) voidsetRegistryEventSection(OMRSEventV1RegistrySection registryEventSection) voidsetTimestamp(Date timestamp) Set up the timestamp for when the event was created.voidsetTypeDefEventSection(OMRSEventV1TypeDefSection typeDefEventSection) toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.repositoryservices.events.beans.OMRSEventBean
getProtocolVersionId, setProtocolVersionId
-
Constructor Details
-
OMRSEventV1
public OMRSEventV1()Default constructor ensures the protocol version id is set in the superclass.
-
-
Method Details
-
getTimestamp
Return the timestamp for when the event was created.- Returns:
- date and time
-
setTimestamp
Set up the timestamp for when the event was created.- Parameters:
timestamp- data/time for the event creation
-
getOriginator
Return details about the event originator. This is to help trace the source of errors or metadata.- Returns:
- event originator object
-
setOriginator
-
getEventCategory
-
setEventCategory
-
getRegistryEventSection
-
setRegistryEventSection
-
getTypeDefEventSection
-
setTypeDefEventSection
-
getInstanceEventSection
-
setInstanceEventSection
-
getErrorSection
-
setErrorSection
-
toString
JSON-style toString.- Overrides:
toStringin classOMRSEventBean- Returns:
- list of properties and their values.
-