Class OMRSInstanceEventProcessor
java.lang.Object
org.odpi.openmetadata.repositoryservices.events.OMRSInstanceEventProcessor
- All Implemented Interfaces:
OMRSInstanceEventProcessorClassificationExtension,OMRSInstanceEventProcessorInterface
- Direct Known Subclasses:
LocalOMRSInstanceEventProcessor
public abstract class OMRSInstanceEventProcessor
extends Object
implements OMRSInstanceEventProcessorInterface, OMRSInstanceEventProcessorClassificationExtension
OMRSInstanceEventProcessor is an interface implemented by a component that is able to process incoming
metadata instance events for an Open Metadata Repository. Instance events are used to replicate metadata
instances across an Open Metadata Repository Cohort.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOMRSInstanceEventProcessor(String eventProcessorName) Constructor to initialize the name of the processor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the event processor.voidprocessClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) Deprecated.voidprocessClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification classification) A new classification has been added to an entity.voidprocessClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityProxy entity, Classification classification) A new classification has been added to an entity.abstract voidprocessConflictingInstancesEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String targetMetadataCollectionId, TypeDefSummary targetTypeDef, String targetInstanceGUID, String otherMetadataCollectionId, InstanceProvenanceType otherOrigin, TypeDefSummary otherTypeDef, String otherInstanceGUID, String errorMessage) An open metadata repository has detected two metadata instances with the same identifier (guid).abstract voidprocessConflictingTypeEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String targetMetadataCollectionId, TypeDefSummary targetTypeDef, String targetInstanceGUID, TypeDefSummary otherTypeDef, String errorMessage) An open metadata repository has detected an inconsistency in the version number of the type used in an updated metadata instance compared to its stored version.voidprocessDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) Deprecated.voidprocessDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification originalClassification) A classification has been removed from an entity.voidprocessDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityProxy entity, Classification originalClassification) A classification has been removed from an entity.abstract voidprocessDeletedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An existing entity has been deleted.abstract voidprocessDeletedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An active relationship has been deleted.voidprocessDeletePurgedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An existing entity has been deleted and purged in a single action.voidprocessDeletePurgedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An active relationship has been deleted and purged from the repository.abstract voidprocessInstanceBatchEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, InstanceGraph instances) An open metadata repository is passing information about a collection of entities and relationships with the other repositories in the cohort.abstract voidprocessNewEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) A new entity has been created.abstract voidprocessNewRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) A new relationship has been created.abstract voidprocessPurgedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID) A deleted entity has been permanently removed from the repository.voidprocessPurgedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An entity has been permanently removed from the repository.abstract voidprocessPurgedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID) A deleted relationship has been permanently removed from the repository.voidprocessPurgedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) A relationship has been permanently removed from the repository.voidprocessReclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) Deprecated.voidprocessReclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification originalClassification, Classification classification) An existing classification has been changed on an entity.voidprocessReclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityProxy entity, Classification originalClassification, Classification classification) An existing classification has been changed on an entity.abstract voidprocessRefreshEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) A remote repository in the cohort has sent entity details in response to a refresh request.abstract voidprocessRefreshEntityRequested(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID, String homeMetadataCollectionId) The local repository is requesting that an entity from another repository's metadata collection is refreshed so the local repository can create a reference copy.abstract voidprocessRefreshRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An open metadata repository is refreshing the information about a relationship for the other repositories in the cohort.abstract voidprocessRefreshRelationshipRequest(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID, String homeMetadataCollectionId) An open metadata repository has requested the home repository of a relationship send details of the relationship so its local metadata collection can create a reference copy of the instance.abstract voidprocessReHomedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollectionId, EntityDetail entity) An existing entity has changed home repository.abstract voidprocessReHomedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollectionId, Relationship relationship) An existing relationship has changed home repository.abstract voidprocessReIdentifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalEntityGUID, EntityDetail entity) The guid of an existing entity has been changed to a new value.abstract voidprocessReIdentifiedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalRelationshipGUID, Relationship relationship) The guid of an existing relationship has changed.abstract voidprocessRestoredEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) A deleted entity has been restored to the state it was before it was deleted.abstract voidprocessRestoredRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) A deleted relationship has been restored to the state it was before it was deleted.abstract voidprocessReTypedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDef, EntityDetail entity) An existing entity has had its type changed.abstract voidprocessReTypedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDef, Relationship relationship) An existing relationship has had its type changed.abstract voidprocessUndoneEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An update to an entity has been undone.abstract voidprocessUndoneRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An update to a relationship has been undone.abstract voidprocessUpdatedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail oldEntity, EntityDetail newEntity) An existing entity has been updated.abstract voidprocessUpdatedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship oldRelationship, Relationship newRelationship) An existing relationship has been updated.abstract voidsendInstanceEvent(String sourceName, OMRSInstanceEvent instanceEvent) Process the instance event directly.
-
Constructor Details
-
OMRSInstanceEventProcessor
Constructor to initialize the name of the processor.- Parameters:
eventProcessorName- string name
-
-
Method Details
-
getEventProcessorName
Return the name of the event processor.- Returns:
- event processor name
-
sendInstanceEvent
Process the instance event directly.- Specified by:
sendInstanceEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- source of the eventinstanceEvent- properties of the event to send
-
processNewEntityEvent
public abstract void processNewEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) A new entity has been created.- Specified by:
processNewEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the new entity
-
processUpdatedEntityEvent
public abstract void processUpdatedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail oldEntity, EntityDetail newEntity) An existing entity has been updated.- Specified by:
processUpdatedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.oldEntity- original entity before update.newEntity- details of the new version of the entity.
-
processUndoneEntityEvent
public abstract void processUndoneEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An update to an entity has been undone.- Specified by:
processUndoneEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the version of the entity that has been restored.
-
processClassifiedEntityEvent
@Deprecated public void processClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) Deprecated.A new classification has been added to an entity.- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the entity with the new classification added. No guarantee this is all the classifications.
-
processClassifiedEntityEvent
public void processClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification classification) A new classification has been added to an entity.- Specified by:
processClassifiedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the entity with the new classification added. No guarantee this is all the classifications.classification- new classification
-
processClassifiedEntityEvent
public void processClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityProxy entity, Classification classification) A new classification has been added to an entity.- Specified by:
processClassifiedEntityEventin interfaceOMRSInstanceEventProcessorClassificationExtension- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- proxy of the entity with the new classification added. No guarantee this is all the classifications.classification- new classification
-
processDeclassifiedEntityEvent
@Deprecated public void processDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) Deprecated.A classification has been removed from an entity.- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the entity after the classification has been removed. No guarantee this is all the classifications.
-
processDeclassifiedEntityEvent
public void processDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification originalClassification) A classification has been removed from an entity.- Specified by:
processDeclassifiedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the entity after the classification has been removed. No guarantee this is all the classifications.originalClassification- classification that was removed
-
processDeclassifiedEntityEvent
public void processDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityProxy entity, Classification originalClassification) A classification has been removed from an entity.- Specified by:
processDeclassifiedEntityEventin interfaceOMRSInstanceEventProcessorClassificationExtension- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- proxy of the entity after the classification has been removed. No guarantee this is all the classifications.originalClassification- classification that was removed
-
processReclassifiedEntityEvent
@Deprecated public void processReclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) Deprecated.An existing classification has been changed on an entity.- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the entity after the classification has been changed. No guarantee this is all the classifications.
-
processReclassifiedEntityEvent
public void processReclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification originalClassification, Classification classification) An existing classification has been changed on an entity.- Specified by:
processReclassifiedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the entity after the classification has been changed. No guarantee this is all the classifications.originalClassification- classification that was removedclassification- new classification
-
processReclassifiedEntityEvent
public void processReclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityProxy entity, Classification originalClassification, Classification classification) An existing classification has been changed on an entity.- Specified by:
processReclassifiedEntityEventin interfaceOMRSInstanceEventProcessorClassificationExtension- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- proxy of the entity after the classification has been changed. No guarantee this is all the classifications.originalClassification- classification that was removedclassification- new classification
-
processDeletedEntityEvent
public abstract void processDeletedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An existing entity has been deleted. This is a soft delete. This means it is still in the repository but it is no longer returned on queries. All relationships to the entity are also soft-deleted and will no longer be usable. These deleted relationships will be notified through separate events.- Specified by:
processDeletedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- deleted entity
-
processRestoredEntityEvent
public abstract void processRestoredEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) A deleted entity has been restored to the state it was before it was deleted.- Specified by:
processRestoredEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the version of the entity that has been restored.
-
processPurgedEntityEvent
public void processPurgedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An entity has been permanently removed from the repository. This request can not be undone.- Specified by:
processPurgedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the version of the entity that has been purged.
-
processPurgedEntityEvent
public abstract void processPurgedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID) A deleted entity has been permanently removed from the repository. This request can not be undone. Details of the TypeDef are included with the entity's unique id (guid) to ensure the right entity is purged in the remote repositories.- Specified by:
processPurgedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.typeDefGUID- unique identifier for this entity's TypeDeftypeDefName- name of this entity's TypeDefinstanceGUID- unique identifier for the entity
-
processDeletePurgedEntityEvent
public void processDeletePurgedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) An existing entity has been deleted and purged in a single action. All relationships to the entity are also deleted and purged and will no longer be usable. These deleted relationships will be notified through separate events.- Specified by:
processDeletePurgedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- deleted entity
-
processReTypedEntityEvent
public abstract void processReTypedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDef, EntityDetail entity) An existing entity has had its type changed. Typically this action is taken to move an entity's type to either a super type (so the subtype can be deleted) or a new subtype (so additional properties can be added.) However, the type can be changed to any compatible type.- Specified by:
processReTypedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.originalTypeDef- description of this entity's original TypeDef.entity- new values for this entity, including the new type information.
-
processReHomedEntityEvent
public abstract void processReHomedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollectionId, EntityDetail entity) An existing entity has changed home repository. This action is taken for example, if a repository becomes permanently unavailable, or if the user community updating this entity move to working from a different repository in the open metadata repository cohort.- Specified by:
processReHomedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.originalHomeMetadataCollectionId- unique identifier for the original home metadata collection/repository.entity- new values for this entity, including the new home information.
-
processReIdentifiedEntityEvent
public abstract void processReIdentifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalEntityGUID, EntityDetail entity) The guid of an existing entity has been changed to a new value. This is used if two different entities are discovered to have the same guid. This is extremely unlikely but not impossible so the open metadata protocol has provision for this.- Specified by:
processReIdentifiedEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.originalEntityGUID- the existing identifier for the entity.entity- new values for this entity, including the new guid.
-
processRefreshEntityRequested
public abstract void processRefreshEntityRequested(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID, String homeMetadataCollectionId) The local repository is requesting that an entity from another repository's metadata collection is refreshed so the local repository can create a reference copy.- Specified by:
processRefreshEntityRequestedin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.typeDefGUID- unique identifier for this entity's TypeDeftypeDefName- name of this entity's TypeDefinstanceGUID- unique identifier for the entityhomeMetadataCollectionId- metadata collection id for the home of this instance.
-
processRefreshEntityEvent
public abstract void processRefreshEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity) A remote repository in the cohort has sent entity details in response to a refresh request.- Specified by:
processRefreshEntityEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.entity- details of the requested entity
-
processNewRelationshipEvent
public abstract void processNewRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) A new relationship has been created.- Specified by:
processNewRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.relationship- details of the new relationship
-
processUpdatedRelationshipEvent
public abstract void processUpdatedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship oldRelationship, Relationship newRelationship) An existing relationship has been updated.- Specified by:
processUpdatedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.oldRelationship- original details of the relationship.newRelationship- details of the new version of the relationship.
-
processUndoneRelationshipEvent
public abstract void processUndoneRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An update to a relationship has been undone.- Specified by:
processUndoneRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.relationship- details of the version of the relationship that has been restored.
-
processDeletedRelationshipEvent
public abstract void processDeletedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An active relationship has been deleted. This is a soft delete. This means it is still in the repository but it is no longer returned on queries.- Specified by:
processDeletedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.relationship- deleted relationship
-
processRestoredRelationshipEvent
public abstract void processRestoredRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) A deleted relationship has been restored to the state it was before it was deleted.- Specified by:
processRestoredRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.relationship- details of the version of the relationship that has been restored.
-
processPurgedRelationshipEvent
public void processPurgedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) A relationship has been permanently removed from the repository. This request can not be undone.- Specified by:
processPurgedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.relationship- details of the relationship that has been purged.
-
processPurgedRelationshipEvent
public abstract void processPurgedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID) A deleted relationship has been permanently removed from the repository. This request can not be undone. Details of the TypeDef are included with the relationship's unique id (guid) to ensure the right relationship is purged in the remote repositories.- Specified by:
processPurgedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.typeDefGUID- unique identifier for this relationship's TypeDef.typeDefName- name of this relationship's TypeDef.instanceGUID- unique identifier for the relationship.
-
processDeletePurgedRelationshipEvent
public void processDeletePurgedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An active relationship has been deleted and purged from the repository. This request can not be undone.- Specified by:
processDeletePurgedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.relationship- deleted relationship
-
processReTypedRelationshipEvent
public abstract void processReTypedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDef, Relationship relationship) An existing relationship has had its type changed. Typically this action is taken to move a relationship's type to either a super type (so the subtype can be deleted) or a new subtype (so additional properties can be added.) However, the type can be changed to any compatible type.- Specified by:
processReTypedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.originalTypeDef- description of this relationship's original TypeDef.relationship- new values for this relationship, including the new type information.
-
processReHomedRelationshipEvent
public abstract void processReHomedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollectionId, Relationship relationship) An existing relationship has changed home repository. This action is taken for example, if a repository becomes permanently unavailable, or if the user community updating this relationship move to working from a different repository in the open metadata repository cohort.- Specified by:
processReHomedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.originalHomeMetadataCollectionId- unique identifier for the original home repository.relationship- new values for this relationship, including the new home information.
-
processReIdentifiedRelationshipEvent
public abstract void processReIdentifiedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalRelationshipGUID, Relationship relationship) The guid of an existing relationship has changed. This is used if two different relationships are discovered to have the same guid. This is extremely unlikely but not impossible so the open metadata protocol has provision for this.- Specified by:
processReIdentifiedRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.originalRelationshipGUID- the existing identifier for the relationship.relationship- new values for this relationship, including the new guid.
-
processRefreshRelationshipRequest
public abstract void processRefreshRelationshipRequest(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String typeDefGUID, String typeDefName, String instanceGUID, String homeMetadataCollectionId) An open metadata repository has requested the home repository of a relationship send details of the relationship so its local metadata collection can create a reference copy of the instance.- Specified by:
processRefreshRelationshipRequestin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.typeDefGUID- unique identifier for this instance's TypeDeftypeDefName- name of this relationship's TypeDefinstanceGUID- unique identifier for the instancehomeMetadataCollectionId- metadata collection id for the home of this instance.
-
processRefreshRelationshipEvent
public abstract void processRefreshRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship) An open metadata repository is refreshing the information about a relationship for the other repositories in the cohort.- Specified by:
processRefreshRelationshipEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.relationship- relationship details
-
processInstanceBatchEvent
public abstract void processInstanceBatchEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, InstanceGraph instances) An open metadata repository is passing information about a collection of entities and relationships with the other repositories in the cohort.- Specified by:
processInstanceBatchEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- unique identifier for the metadata collection hosted by the server that sent the event.originatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.instances- multiple entities and relationships for sharing.
-
processConflictingInstancesEvent
public abstract void processConflictingInstancesEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String targetMetadataCollectionId, TypeDefSummary targetTypeDef, String targetInstanceGUID, String otherMetadataCollectionId, InstanceProvenanceType otherOrigin, TypeDefSummary otherTypeDef, String otherInstanceGUID, String errorMessage) An open metadata repository has detected two metadata instances with the same identifier (guid). This is a serious error because it could lead to corruption of the metadata collections within the cohort. When this occurs, all repositories in the cohort delete their reference copies of the metadata instances and at least one of the instances has its GUID changed in its respective home repository. The updated instance(s) are redistributed around the cohort.- Specified by:
processConflictingInstancesEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- metadata collection id of the repository reporting the conflicting instanceoriginatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.targetMetadataCollectionId- metadata collection id of other repository with the conflicting instancetargetTypeDef- details 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 instanceotherTypeDef- details of the other (older) instance's TypeDefotherInstanceGUID- unique identifier for the other (older) instanceerrorMessage- description of the error.
-
processConflictingTypeEvent
public abstract void processConflictingTypeEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String targetMetadataCollectionId, TypeDefSummary targetTypeDef, String targetInstanceGUID, TypeDefSummary otherTypeDef, String errorMessage) An open metadata repository has detected an inconsistency in the version number of the type used in an updated metadata instance compared to its stored version.- Specified by:
processConflictingTypeEventin interfaceOMRSInstanceEventProcessorInterface- Parameters:
sourceName- name of the source of the event. It may be the cohort name for incoming events or the local repository, or event mapper name.originatorMetadataCollectionId- metadata collection id of the repository reporting the conflicting instanceoriginatorServerName- name of the server that the event came from.originatorServerType- type of server that the event came from.originatorOrganizationName- name of the organization that owns the server that sent the event.targetMetadataCollectionId- metadata collection id of other repository with the conflicting instancetargetTypeDef- description of the target instance's TypeDeftargetInstanceGUID- unique identifier for the source instanceotherTypeDef- details of the other (older) instance's TypeDeferrorMessage- description of the error.
-