Class RepositoryEventMapper
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.Connector
-
- org.odpi.openmetadata.frameworks.connectors.ConnectorBase
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperBase
-
- org.odpi.openmetadata.connector.sas.event.mapper.RepositoryEventMapper
-
- All Implemented Interfaces:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicListener,org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapper
public class RepositoryEventMapper extends org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperBase implements org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicListenerRepositoryEventMapper supports the event mapper function for SAS Catalog when used as an open metadata repository.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector
auditLog, localMetadataCollectionId, localOrganizationName, localServerName, localServerType, localServerUserId, repositoryConnector, repositoryEventMapperName, repositoryEventProcessor, repositoryHelper, repositoryValidator
-
-
Constructor Summary
Constructors Constructor Description RepositoryEventMapper()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisconnect()voidinitialize(java.lang.String repositoryEventMapperName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector)voidprocessEvent(java.lang.String event)Method to pass an event received on topic.voidsendNewAttributeTypeDefEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef newAttributeTypeDef)Sends a new AttributeTypeDef event.voidsendNewTypeDefEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef newTypeDef)Sends a new TypeDef event.voidsendRefreshEntityRequest(java.lang.String typeDefGUID, java.lang.String typeDefName, java.lang.String entityGUID, java.lang.String homeMetadataCollectionId)Sends a refresh entity request event.voidsendRefreshRelationshipRequest(java.lang.String typeDefGUID, java.lang.String typeDefName, java.lang.String relationshipGUID, java.lang.String homeMetadataCollectionId)Sends a refresh relationship request event.voidstart()-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector
setAuditLog, setMetadataCollectionId, setOrganizationName, setRepositoryEventProcessor, setRepositoryHelper, setRepositoryValidator, setServerName, setServerType, setServerUserId
-
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.String repositoryEventMapperName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector)- Specified by:
initializein interfaceorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapper- Overrides:
initializein classorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector
-
start
public void start() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- Overrides:
startin classorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException
-
processEvent
public void processEvent(java.lang.String event)
Method to pass an event received on topic.- Specified by:
processEventin interfaceorg.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicListener- Parameters:
event- inbound event
-
disconnect
public void disconnect() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- Overrides:
disconnectin classorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException
-
sendNewTypeDefEvent
public void sendNewTypeDefEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef newTypeDef)
Sends a new TypeDef event.- Parameters:
newTypeDef- the new TypeDef for which to send an event
-
sendNewAttributeTypeDefEvent
public void sendNewAttributeTypeDefEvent(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef newAttributeTypeDef)
Sends a new AttributeTypeDef event.- Parameters:
newAttributeTypeDef- the new AttributeTypeDef for which to send an event
-
sendRefreshEntityRequest
public void sendRefreshEntityRequest(java.lang.String typeDefGUID, java.lang.String typeDefName, java.lang.String entityGUID, java.lang.String homeMetadataCollectionId)Sends a refresh entity request event.- Parameters:
typeDefGUID- unique identifier of requested entity's TypeDeftypeDefName- unique name of requested entity's TypeDefentityGUID- unique identifier of requested entityhomeMetadataCollectionId- identifier of the metadata collection that is the home to this entity
-
sendRefreshRelationshipRequest
public void sendRefreshRelationshipRequest(java.lang.String typeDefGUID, java.lang.String typeDefName, java.lang.String relationshipGUID, java.lang.String homeMetadataCollectionId)Sends a refresh relationship request event.- Parameters:
typeDefGUID- the guid of the TypeDef for the relationship used to verify the relationship identitytypeDefName- the name of the TypeDef for the relationship used to verify the relationship identityrelationshipGUID- unique identifier of the relationshiphomeMetadataCollectionId- unique identifier for the home repository for this relationship
-
-