Class GovernanceEngineOMRSTopicListener
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerBase
-
- org.odpi.openmetadata.accessservices.governanceengine.outtopic.GovernanceEngineOMRSTopicListener
-
- All Implemented Interfaces:
OMRSTopicListener,OMRSTopicRepositoryEventListener
public class GovernanceEngineOMRSTopicListener extends OMRSTopicListenerBase
GovernanceEngineOMRSTopicListener is the listener that registers with the repository services (OMRS) to monitor changes to the metadata. This class is looking for changes to the governance engines and governance services configuration. When it detects an appropriate change it passes the update to the GovernanceEngineOutTopicPublisher to publish a GovernanceEngineEvent describing the change. These events are picked up by the Engine Host Server (See engine-host-services) to control the configuration of the governance engines it is hosting.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerBase
auditLog, serviceName
-
-
Constructor Summary
Constructors Constructor Description GovernanceEngineOMRSTopicListener(String serviceName, String userId, MetadataElementHandler<OpenMetadataElement> metadataElementHandler, GovernanceActionHandler<GovernanceActionElement> governanceActionHandler, GovernanceEngineOutTopicPublisher eventPublisher, OMRSRepositoryHelper repositoryHelper, AuditLog auditLog)Initialize the topic listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessClassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification classification)A new classification has been added to an entity.voidprocessDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity, Classification originalClassification)A classification has been removed from an entity.voidprocessDeletedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)An existing entity has been deleted.voidprocessDeletedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)An existing 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.voidprocessNewEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)A new entity has been created.voidprocessNewRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)A new relationship has been created.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.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.voidprocessRefreshRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)The local repository is refreshing the information about a relationship for the other repositories in the cohort.voidprocessReHomedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollectionId, EntityDetail entity)An existing entity has changed home repository.voidprocessReHomedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollection, Relationship relationship)An existing relationship has changed home repository.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.voidprocessReIdentifiedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalRelationshipGUID, Relationship relationship)The guid of an existing relationship has changed.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.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.voidprocessReTypedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDefSummary, EntityDetail entity)An existing entity has had its type changed.voidprocessReTypedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDefSummary, Relationship relationship)An existing relationship has had its type changed.voidprocessUndoneEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)An update to an entity has been undone.voidprocessUndoneRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)An update to a relationship has been undone.voidprocessUpdatedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail oldEntity, EntityDetail newEntity)An existing entity has been updated.voidprocessUpdatedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship oldRelationship, Relationship newRelationship)An existing relationship has been updated.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.omrstopic.OMRSTopicListenerBase
getInstanceTypeName, processAttributeTypeDefConflictEvent, processBadConnectionEvent, processClassifiedEntityEvent, processClassifiedEntityEvent, processConflictingCollectionIdEvent, processConflictingInstancesEvent, processConflictingTypeEvent, processDeclassifiedEntityEvent, processDeclassifiedEntityEvent, processDeletedAttributeTypeDefEvent, processDeletedTypeDefEvent, processInstanceBatchEvent, processInstanceEvent, processNewAttributeTypeDefEvent, processNewTypeDefEvent, processPurgedEntityEvent, processPurgedRelationshipEvent, processReclassifiedEntityEvent, processReclassifiedEntityEvent, processRefreshEntityRequested, processRefreshRelationshipRequest, processRegistrationEvent, processRegistrationRefreshRequest, processRegistryEvent, processReIdentifiedAttributeTypeDefEvent, processReIdentifiedTypeDefEvent, processReRegistrationEvent, processTypeDefConflictEvent, processTypeDefEvent, processTypeDefPatchMismatchEvent, processUnRegistrationEvent, processUpdatedTypeDefEvent
-
-
-
-
Constructor Detail
-
GovernanceEngineOMRSTopicListener
public GovernanceEngineOMRSTopicListener(String serviceName, String userId, MetadataElementHandler<OpenMetadataElement> metadataElementHandler, GovernanceActionHandler<GovernanceActionElement> governanceActionHandler, GovernanceEngineOutTopicPublisher eventPublisher, OMRSRepositoryHelper repositoryHelper, AuditLog auditLog)
Initialize the topic listener.- Parameters:
serviceName- this is the full name of the service - used for error logging in base classuserId- local server userId for issuing requests to the repository servicesmetadataElementHandler- handler for working with GAF objectsgovernanceActionHandler- handler for working with governance actionseventPublisher- this is the out topic publisher.repositoryHelper- repository helperauditLog- logging destination
-
-
Method Detail
-
processNewEntityEvent
public void processNewEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
A new entity has been created.- Overrides:
processNewEntityEventin classOMRSTopicListenerBase- 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 void processUpdatedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail oldEntity, EntityDetail newEntity)
An existing entity has been updated.- Overrides:
processUpdatedEntityEventin classOMRSTopicListenerBase- 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 values for the entity.newEntity- details of the new version of the entity.
-
processUndoneEntityEvent
public void processUndoneEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, EntityDetail entity)
An update to an entity has been undone.- Overrides:
processUndoneEntityEventin classOMRSTopicListenerBase- 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
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.- Overrides:
processClassifiedEntityEventin classOMRSTopicListenerBase- 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 of the classifications.classification- new classification
-
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.- Overrides:
processDeclassifiedEntityEventin classOMRSTopicListenerBase- 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 of the classifications.originalClassification- classification that was removed
-
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.- Overrides:
processReclassifiedEntityEventin classOMRSTopicListenerBase- 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 of the classifications.originalClassification- classification that was removedclassification- new classification
-
processDeletedEntityEvent
public 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.
Details of the TypeDef are included with the entity's unique id (guid) to ensure the right entity is deleted in the remote repositories.
- Overrides:
processDeletedEntityEventin classOMRSTopicListenerBase- 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
-
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.- Overrides:
processDeletePurgedEntityEventin classOMRSTopicListenerBase- 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 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.- Overrides:
processRestoredEntityEventin classOMRSTopicListenerBase- 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.
-
processReIdentifiedEntityEvent
public 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.- Overrides:
processReIdentifiedEntityEventin classOMRSTopicListenerBase- 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.
-
processReTypedEntityEvent
public void processReTypedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDefSummary, 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.- Overrides:
processReTypedEntityEventin classOMRSTopicListenerBase- 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.originalTypeDefSummary- original details of this entity's TypeDef.entity- new values for this entity, including the new type information.
-
processReHomedEntityEvent
public 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 cluster.- Overrides:
processReHomedEntityEventin classOMRSTopicListenerBase- 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.entity- new values for this entity, including the new home information.
-
processRefreshEntityEvent
public 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.- Overrides:
processRefreshEntityEventin classOMRSTopicListenerBase- 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 void processNewRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
A new relationship has been created.- Overrides:
processNewRelationshipEventin classOMRSTopicListenerBase- 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 void processUpdatedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship oldRelationship, Relationship newRelationship)
An existing relationship has been updated.- Overrides:
processUpdatedRelationshipEventin classOMRSTopicListenerBase- 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 void processUndoneRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
An update to a relationship has been undone.- Overrides:
processUndoneRelationshipEventin classOMRSTopicListenerBase- 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 void processDeletedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
An existing 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.Details of the TypeDef are included with the relationship's unique id (guid) to ensure the right relationship is deleted in the remote repositories.
- Overrides:
processDeletedRelationshipEventin classOMRSTopicListenerBase- 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
-
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.- Overrides:
processDeletePurgedRelationshipEventin classOMRSTopicListenerBase- 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 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.- Overrides:
processRestoredRelationshipEventin classOMRSTopicListenerBase- 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.
-
processReIdentifiedRelationshipEvent
public 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.- Overrides:
processReIdentifiedRelationshipEventin classOMRSTopicListenerBase- 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.
-
processReTypedRelationshipEvent
public void processReTypedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, TypeDefSummary originalTypeDefSummary, 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.- Overrides:
processReTypedRelationshipEventin classOMRSTopicListenerBase- 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.originalTypeDefSummary- original details of this relationship's TypeDef.relationship- new values for this relationship, including the new type information.
-
processReHomedRelationshipEvent
public void processReHomedRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, String originalHomeMetadataCollection, 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 cluster.- Overrides:
processReHomedRelationshipEventin classOMRSTopicListenerBase- 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.originalHomeMetadataCollection- unique identifier for the original home repository.relationship- new values for this relationship, including the new home information.
-
processRefreshRelationshipEvent
public void processRefreshRelationshipEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String originatorServerType, String originatorOrganizationName, Relationship relationship)
The local repository is refreshing the information about a relationship for the other repositories in the cohort.- Overrides:
processRefreshRelationshipEventin classOMRSTopicListenerBase- 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
-
-