Class OMRSRepositoryEventPublisher
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventProcessor
org.odpi.openmetadata.repositoryservices.eventmanagement.OMRSRepositoryEventBuilder
org.odpi.openmetadata.repositoryservices.eventmanagement.OMRSRepositoryEventPublisher
- All Implemented Interfaces:
OMRSInstanceEventProcessorClassificationExtension
,OMRSInstanceEventProcessorInterface
,OMRSTypeDefEventProcessorInterface
OMRSRepositoryEventPublisher publishes TypeDef and Instance OMRS Events to the supplied OMRSTopicConnector.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventProcessor
eventProcessorName
-
Constructor Summary
ConstructorDescriptionOMRSRepositoryEventPublisher
(String publisherName, List<OMRSTopicConnector> typesTopicConnectors, List<OMRSTopicConnector> instancesTopicConnectors, AuditLog auditLog) Typical constructor sets up the local metadata collection id for events.OMRSRepositoryEventPublisher
(String publisherName, OMRSTopicConnector topicConnector, AuditLog auditLog) Typical constructor sets up the local metadata collection id for events. -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendInstanceEvent
(String sourceName, OMRSInstanceEvent instanceEvent) Set the instance event to the OMRS Topic connector if the instance event is of the permitted type.void
sendTypeDefEvent
(String sourceName, OMRSTypeDefEvent typeDefEvent) Send the TypeDef event to the OMRS Topic connector (providing TypeDef Events are enabled).void
setSecurityVerifier
(OpenMetadataEventsSecurity securityVerifier) Set up a new security verifier (the handler runs with a default verifier until this method is called).Methods inherited from class org.odpi.openmetadata.repositoryservices.eventmanagement.OMRSRepositoryEventBuilder
processAttributeTypeDefConflictEvent, processClassifiedEntityEvent, processClassifiedEntityEvent, processConflictingInstancesEvent, processConflictingTypeEvent, processDeclassifiedEntityEvent, processDeclassifiedEntityEvent, processDeletedAttributeTypeDefEvent, processDeletedEntityEvent, processDeletedRelationshipEvent, processDeletedTypeDefEvent, processDeletePurgedEntityEvent, processDeletePurgedRelationshipEvent, processInstanceBatchEvent, processNewAttributeTypeDefEvent, processNewEntityEvent, processNewRelationshipEvent, processNewTypeDefEvent, processPurgedEntityEvent, processPurgedEntityEvent, processPurgedRelationshipEvent, processPurgedRelationshipEvent, processReclassifiedEntityEvent, processReclassifiedEntityEvent, processRefreshEntityEvent, processRefreshEntityRequested, processRefreshRelationshipEvent, processRefreshRelationshipRequest, processReHomedEntityEvent, processReHomedRelationshipEvent, processReIdentifiedAttributeTypeDefEvent, processReIdentifiedEntityEvent, processReIdentifiedRelationshipEvent, processReIdentifiedTypeDefEvent, processRestoredEntityEvent, processRestoredRelationshipEvent, processReTypedEntityEvent, processReTypedRelationshipEvent, processTypeDefConflictEvent, processTypeDefPatchMismatchEvent, processUndoneEntityEvent, processUndoneRelationshipEvent, processUpdatedEntityEvent, processUpdatedRelationshipEvent, processUpdatedTypeDefEvent
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventProcessor
getEventProcessorName, processClassifiedEntityEvent, processDeclassifiedEntityEvent, processReclassifiedEntityEvent
-
Constructor Details
-
OMRSRepositoryEventPublisher
public OMRSRepositoryEventPublisher(String publisherName, OMRSTopicConnector topicConnector, AuditLog auditLog) Typical constructor sets up the local metadata collection id for events.- Parameters:
publisherName
- name of the cohort (or enterprise virtual repository) that this event publisher is sending events to.topicConnector
- OMRS Topic to send requests onauditLog
- audit log for this component.
-
OMRSRepositoryEventPublisher
public OMRSRepositoryEventPublisher(String publisherName, List<OMRSTopicConnector> typesTopicConnectors, List<OMRSTopicConnector> instancesTopicConnectors, AuditLog auditLog) Typical constructor sets up the local metadata collection id for events.- Parameters:
publisherName
- name of the cohort (or enterprise virtual repository) that this event publisher is sending events to.typesTopicConnectors
- list of OMRS Topic connectors to send type requests oninstancesTopicConnectors
- list of OMRS Topic connectors to send type requests onauditLog
- audit log for this component.
-
-
Method Details
-
setSecurityVerifier
Set up a new security verifier (the handler runs with a default verifier until this method is called). The security verifier provides authorization checks for whether individual events should be sent/received. Authorization checks are enabled through the OpenMetadataServerSecurityConnector.- Parameters:
securityVerifier
- new security verifier
-
sendTypeDefEvent
Send the TypeDef event to the OMRS Topic connector (providing TypeDef Events are enabled).- Parameters:
sourceName
- name of callertypeDefEvent
- properties of the event to send
-
sendInstanceEvent
Set the instance event to the OMRS Topic connector if the instance event is of the permitted type.- Parameters:
sourceName
- name of callerinstanceEvent
- properties of the event to send
-