public class OMRSRegistryEvent extends OMRSEvent
errorMessage, eventCategory, eventDirection, eventOriginator, eventTimestamp, genericErrorCode, otherAttributeTypeDef, otherInstanceGUID, otherMetadataCollectionId, otherOrigin, otherTypeDef, otherTypeDefSummary, targetAttributeTypeDef, targetInstanceGUID, targetMetadataCollectionId, targetRemoteConnection, targetTypeDefSummary| Constructor and Description |
|---|
OMRSRegistryEvent(OMRSEventV1 inboundEvent)
Inbound event constructor that takes the object created by the Jackson JSON mapper and unpacks the
properties into the registry event.
|
OMRSRegistryEvent(OMRSRegistryEventErrorCode errorCode,
String errorMessage,
String targetMetadataCollectionId,
Connection remoteConnection)
Constructor for the REGISTRATION_ERROR_EVENT outbound event.
|
OMRSRegistryEvent(OMRSRegistryEventType registryEventType)
Constructor for an UnRegistration Event.
|
OMRSRegistryEvent(OMRSRegistryEventType registryEventType,
Date registrationTimestamp,
String metadataCollectionName,
Connection remoteConnection)
Constructor for a normal outbound event.
|
| Modifier and Type | Method and Description |
|---|---|
OMRSRegistryEventErrorCode |
getErrorCode()
Return the error code for the event.
|
String |
getMetadataCollectionName()
Return the display name for the repository's metadata collection.
|
OMRSEventV1 |
getOMRSEventV1()
Returns an OMRSEvent populated with details from this RegistryEvent
|
Date |
getRegistrationTimestamp()
Return the date/time that the repository registered with the open metadata repository cohort.
|
OMRSRegistryEventType |
getRegistryEventType()
Return the specific registry event type.
|
Connection |
getRemoteConnection()
Return the remote connection used to create a connector used to call the repository across the network.
|
String |
toString()
Standard toString method.
|
getErrorMessage, getEventCategory, getEventDirection, getEventOriginator, getEventTimestamp, getGenericErrorCode, getOtherAttributeTypeDef, getOtherInstanceGUID, getOtherMetadataCollectionId, getOtherOrigin, getOtherTypeDef, getOtherTypeDefSummary, getTargetAttributeTypeDef, getTargetInstanceGUID, getTargetMetadataCollectionId, getTargetRemoteConnection, getTargetTypeDefSummary, setEventOriginatorpublic OMRSRegistryEvent(OMRSEventV1 inboundEvent)
inboundEvent - incoming Event.public OMRSRegistryEvent(OMRSRegistryEventType registryEventType, Date registrationTimestamp, String metadataCollectionName, Connection remoteConnection)
registryEventType - type of event (REGISTRATION_EVENT, REFRESH_REGISTRATION_REQUEST, RE_REGISTRATION_EVENT)registrationTimestamp - time that the local repository registered.metadataCollectionName - name of the metadata collection being registered.remoteConnection - remote connection to this local repository.public OMRSRegistryEvent(OMRSRegistryEventType registryEventType)
registryEventType - the type of eventpublic OMRSRegistryEvent(OMRSRegistryEventErrorCode errorCode, String errorMessage, String targetMetadataCollectionId, Connection remoteConnection)
errorCode - detailed error codeerrorMessage - Optional error messagetargetMetadataCollectionId - the identifier of the server that sent bad information.remoteConnection - remote connection to the target repository. (Optional only supplied if
relevant to the reported error; otherwise null.)public OMRSRegistryEventType getRegistryEventType()
public Date getRegistrationTimestamp()
public String getMetadataCollectionName()
public Connection getRemoteConnection()
public OMRSRegistryEventErrorCode getErrorCode()
public OMRSEventV1 getOMRSEventV1()
getOMRSEventV1 in class OMRSEventCopyright © 2018–2020 ODPi. All rights reserved.