Class 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.OpenMetadataTopicListener
    RepositoryEventMapper supports the event mapper function for SAS Catalog when used as an open metadata repository.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

        org.odpi.openmetadata.frameworks.connectors.ConnectorBase.ProtectedConnection
    • 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
      • Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

        connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, securedProperties
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disconnect()
      void initialize​(java.lang.String repositoryEventMapperName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector)  
      void processEvent​(java.lang.String event)
      Method to pass an event received on topic.
      void sendNewAttributeTypeDefEvent​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef newAttributeTypeDef)
      Sends a new AttributeTypeDef event.
      void sendNewTypeDefEvent​(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef newTypeDef)
      Sends a new TypeDef event.
      void sendRefreshEntityRequest​(java.lang.String typeDefGUID, java.lang.String typeDefName, java.lang.String entityGUID, java.lang.String homeMetadataCollectionId)
      Sends a refresh entity request event.
      void sendRefreshRelationshipRequest​(java.lang.String typeDefGUID, java.lang.String typeDefName, java.lang.String relationshipGUID, java.lang.String homeMetadataCollectionId)
      Sends a refresh relationship request event.
      void start()
      • Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector

        setAuditLog, setMetadataCollectionId, setOrganizationName, setRepositoryEventProcessor, setRepositoryHelper, setRepositoryValidator, setServerName, setServerType, setServerUserId
      • Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase

        equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RepositoryEventMapper

        public RepositoryEventMapper()
        Default constructor
    • Method Detail

      • initialize

        public void initialize​(java.lang.String repositoryEventMapperName,
                               org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnector repositoryConnector)
        Specified by:
        initialize in interface org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapper
        Overrides:
        initialize in class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector
      • start

        public void start()
                   throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException
        Overrides:
        start in class org.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:
        processEvent in interface org.odpi.openmetadata.repositoryservices.connectors.openmetadatatopic.OpenMetadataTopicListener
        Parameters:
        event - inbound event
      • disconnect

        public void disconnect()
                        throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException
        Overrides:
        disconnect in class org.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 TypeDef
        typeDefName - unique name of requested entity's TypeDef
        entityGUID - unique identifier of requested entity
        homeMetadataCollectionId - 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 identity
        typeDefName - the name of the TypeDef for the relationship used to verify the relationship identity
        relationshipGUID - unique identifier of the relationship
        homeMetadataCollectionId - unique identifier for the home repository for this relationship