public abstract class OMRSEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
errorMessage |
protected OMRSEventCategory |
eventCategory |
protected OMRSEventDirection |
eventDirection |
protected OMRSEventOriginator |
eventOriginator |
protected Date |
eventTimestamp |
protected OMRSEventErrorCode |
genericErrorCode |
protected AttributeTypeDef |
otherAttributeTypeDef |
protected String |
otherInstanceGUID |
protected String |
otherMetadataCollectionId |
protected InstanceProvenanceType |
otherOrigin |
protected TypeDef |
otherTypeDef |
protected TypeDefSummary |
otherTypeDefSummary |
protected AttributeTypeDef |
targetAttributeTypeDef |
protected String |
targetInstanceGUID |
protected String |
targetMetadataCollectionId |
protected Connection |
targetRemoteConnection |
protected TypeDefSummary |
targetTypeDefSummary |
| Constructor and Description |
|---|
OMRSEvent(OMRSEventCategory eventCategory)
Outbound event constructor used when there is no error.
|
OMRSEvent(OMRSEventCategory eventCategory,
OMRSEventErrorCode genericErrorCode,
String errorMessage,
String targetMetadataCollectionId,
AttributeTypeDef targetAttributeTypeDef,
AttributeTypeDef otherAttributeTypeDef)
Outbound constructor used for AttributeTypeDef conflict events.
|
OMRSEvent(OMRSEventCategory eventCategory,
OMRSEventErrorCode genericErrorCode,
String errorMessage,
String targetMetadataCollectionId,
Connection targetRemoteConnection)
Outbound event constructor used for registry error events.
|
OMRSEvent(OMRSEventCategory eventCategory,
OMRSEventErrorCode genericErrorCode,
String errorMessage,
String targetMetadataCollectionId,
TypeDefSummary targetTypeDefSummary,
String targetInstanceGUID,
String otherMetadataCollectionId,
InstanceProvenanceType otherOrigin,
TypeDefSummary otherTypeDefSummary,
String otherInstanceGUID)
Outbound constructor used for metadata instance conflict events.
|
OMRSEvent(OMRSEventCategory eventCategory,
OMRSEventErrorCode genericErrorCode,
String errorMessage,
String targetMetadataCollectionId,
TypeDefSummary targetTypeDefSummary,
String targetInstanceGUID,
TypeDefSummary otherTypeDefSummary)
Outbound constructor used for metadata instance type conflict events.
|
OMRSEvent(OMRSEventCategory eventCategory,
OMRSEventErrorCode genericErrorCode,
String errorMessage,
String targetMetadataCollectionId,
TypeDefSummary targetTypeDefSummary,
TypeDef otherTypeDef)
Outbound event constructor for a TypeDef patch mismatch warning.
|
OMRSEvent(OMRSEventCategory eventCategory,
OMRSEventErrorCode genericErrorCode,
String errorMessage,
String targetMetadataCollectionId,
TypeDefSummary targetTypeDefSummary,
TypeDefSummary otherTypeDefSummary)
Outbound constructor used for TypeDef conflict events.
|
OMRSEvent(OMRSEventV1 inboundEvent)
Inbound event constructor that takes the object created by the Jackson JSON mapper and unpacks the
properties into the internal OMRSEvent object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage()
Return any error message for the event.
|
OMRSEventCategory |
getEventCategory()
Return the category of the event.
|
OMRSEventDirection |
getEventDirection()
Return whether this is an inbound or outbound event.
|
OMRSEventOriginator |
getEventOriginator()
Return details of the originator of the event including the id of their metadata collection.
|
Date |
getEventTimestamp()
Return the timestamp for the event.
|
protected OMRSEventErrorCode |
getGenericErrorCode()
Return the error code for the event.
|
OMRSEventV1 |
getOMRSEventV1()
Returns an OMRSEvent populated with details about a generic event.
|
AttributeTypeDef |
getOtherAttributeTypeDef()
Return the AttributeTypeDef from the other repository.
|
String |
getOtherInstanceGUID()
Return the unique identifier for the other instance.
|
String |
getOtherMetadataCollectionId()
Return the unique identifier for the metadata collection containing the other instance.
|
InstanceProvenanceType |
getOtherOrigin()
Return the provenance (origin) information for the other instance.
|
TypeDef |
getOtherTypeDef()
Return the TypeDef from the other repository.
|
TypeDefSummary |
getOtherTypeDefSummary()
Return the version of the TypeDef from the other repository.
|
AttributeTypeDef |
getTargetAttributeTypeDef()
Return the target AttributeTypeDef.
|
String |
getTargetInstanceGUID()
Return the target's instance's unique identifier.
|
String |
getTargetMetadataCollectionId()
This is the identifier of the metadata collection that needs to take action.
|
Connection |
getTargetRemoteConnection()
This is the target's connection that is causing errors in the originator's server.
|
TypeDefSummary |
getTargetTypeDefSummary()
Return the target's TypeDef summary.
|
void |
setEventOriginator(OMRSEventOriginator eventOriginator)
Set up details of the event originator used by the event publisher for outbound events.
|
String |
toString()
Standard toString method.
|
protected Date eventTimestamp
protected OMRSEventDirection eventDirection
protected OMRSEventCategory eventCategory
protected OMRSEventOriginator eventOriginator
protected OMRSEventErrorCode genericErrorCode
protected String errorMessage
protected String targetMetadataCollectionId
protected Connection targetRemoteConnection
protected TypeDefSummary targetTypeDefSummary
protected AttributeTypeDef targetAttributeTypeDef
protected String targetInstanceGUID
protected InstanceProvenanceType otherOrigin
protected String otherMetadataCollectionId
protected TypeDefSummary otherTypeDefSummary
protected TypeDef otherTypeDef
protected AttributeTypeDef otherAttributeTypeDef
protected String otherInstanceGUID
public OMRSEvent(OMRSEventV1 inboundEvent)
inboundEvent - incoming Event.public OMRSEvent(OMRSEventCategory eventCategory)
eventCategory - category of event.public OMRSEvent(OMRSEventCategory eventCategory, OMRSEventErrorCode genericErrorCode, String errorMessage, String targetMetadataCollectionId, Connection targetRemoteConnection)
eventCategory - category of event.genericErrorCode - code for the errorerrorMessage - detailed error message for remote audit logtargetMetadataCollectionId - identifier of the metadata collection in error.targetRemoteConnection - connection used to create the connector to access metadata in the
remote repository.public OMRSEvent(OMRSEventCategory eventCategory, OMRSEventErrorCode genericErrorCode, String errorMessage, String targetMetadataCollectionId, TypeDefSummary targetTypeDefSummary, TypeDefSummary otherTypeDefSummary)
eventCategory - category of event.genericErrorCode - code for the errorerrorMessage - detailed error message for remote audit logtargetMetadataCollectionId - identifier of the metadata collection required to change TypeDef.targetTypeDefSummary - details of TypeDef to change.otherTypeDefSummary - description of conflicting TypeDef that will not change.public OMRSEvent(OMRSEventCategory eventCategory, OMRSEventErrorCode genericErrorCode, String errorMessage, String targetMetadataCollectionId, AttributeTypeDef targetAttributeTypeDef, AttributeTypeDef otherAttributeTypeDef)
eventCategory - category of event.genericErrorCode - code for the errorerrorMessage - detailed error message for remote audit logtargetMetadataCollectionId - identifier of the metadata collection required to change TypeDef.targetAttributeTypeDef - details of AttrbuteTypeDef to change.otherAttributeTypeDef - description of conflicting AttributeTypeDef that will not change.public OMRSEvent(OMRSEventCategory eventCategory, OMRSEventErrorCode genericErrorCode, String errorMessage, String targetMetadataCollectionId, TypeDefSummary targetTypeDefSummary, TypeDef otherTypeDef)
eventCategory - category of event.genericErrorCode - code for the error.errorMessage - detailed error message for remote audit logtargetMetadataCollectionId - identifier of the remote metadata collection with mismatched TypeDef.targetTypeDefSummary - description of TypeDef.otherTypeDef - details of local TypeDefpublic OMRSEvent(OMRSEventCategory eventCategory, OMRSEventErrorCode genericErrorCode, String errorMessage, String targetMetadataCollectionId, TypeDefSummary targetTypeDefSummary, String targetInstanceGUID, String otherMetadataCollectionId, InstanceProvenanceType otherOrigin, TypeDefSummary otherTypeDefSummary, String otherInstanceGUID)
eventCategory - category of event.genericErrorCode - code for the errorerrorMessage - detailed error message for remote audit logtargetMetadataCollectionId - metadata collection id of other repository with the conflicting instancetargetTypeDefSummary - description of the target instance's TypeDeftargetInstanceGUID - unique identifier for the source instanceotherOrigin - origin of the other (older) metadata instanceotherMetadataCollectionId - metadata collection of the other (older) metadata instanceotherTypeDefSummary - details of the other (older) instance's TypeDefotherInstanceGUID - unique identifier for the other (older) instancepublic OMRSEvent(OMRSEventCategory eventCategory, OMRSEventErrorCode genericErrorCode, String errorMessage, String targetMetadataCollectionId, TypeDefSummary targetTypeDefSummary, String targetInstanceGUID, TypeDefSummary otherTypeDefSummary)
eventCategory - category of event.genericErrorCode - code for the errorerrorMessage - detailed error message for remote audit logtargetMetadataCollectionId - metadata collection id of other repository with the conflicting instancetargetTypeDefSummary - details of the target instance's TypeDeftargetInstanceGUID - unique identifier for the source instanceotherTypeDefSummary - details of the local TypeDefpublic void setEventOriginator(OMRSEventOriginator eventOriginator)
eventOriginator - details of the originator of the event including the id of the local
metadata collection.public OMRSEventDirection getEventDirection()
public Date getEventTimestamp()
public OMRSEventCategory getEventCategory()
public OMRSEventOriginator getEventOriginator()
protected OMRSEventErrorCode getGenericErrorCode()
public String getErrorMessage()
public String getTargetMetadataCollectionId()
public Connection getTargetRemoteConnection()
public TypeDefSummary getTargetTypeDefSummary()
public AttributeTypeDef getTargetAttributeTypeDef()
public String getTargetInstanceGUID()
public InstanceProvenanceType getOtherOrigin()
public String getOtherMetadataCollectionId()
public TypeDefSummary getOtherTypeDefSummary()
public TypeDef getOtherTypeDef()
public AttributeTypeDef getOtherAttributeTypeDef()
public String getOtherInstanceGUID()
public OMRSEventV1 getOMRSEventV1()
Copyright © 2018–2019 ODPi. All rights reserved.