Class OMRSRepositoryEventMapperConnector
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.Connector
org.odpi.openmetadata.frameworks.connectors.ConnectorBase
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryeventmapper.OMRSRepositoryEventMapperConnector
- All Implemented Interfaces:
AuditLoggingComponent
,SecureConnectorExtension
,VirtualConnectorExtension
,OMRSRepositoryEventMapper
- Direct Known Subclasses:
OMRSRepositoryEventMapperBase
public abstract class OMRSRepositoryEventMapperConnector
extends ConnectorBase
implements OMRSRepositoryEventMapper, AuditLoggingComponent
OMRSRepositoryEventMapperBase provides a base class for implementors of OMRSRepositoryEventMapper.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
ConnectorBase.ProtectedConnection
-
Field Summary
Modifier and TypeFieldDescriptionprotected AuditLog
protected String
protected String
protected String
protected String
protected String
protected OMRSRepositoryConnector
protected String
protected OMRSRepositoryEventProcessor
protected OMRSRepositoryHelper
protected OMRSRepositoryValidator
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
connectedAssetProperties, connectionBean, connectionProperties, connectorInstanceId, embeddedConnectors, messageFormatter, secretsStoreConnectorMap
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Free up any resources held since the connector is no longer needed.Return the component description that is used by this connector in the audit log.void
initialize
(String repositoryEventMapperName, OMRSRepositoryConnector repositoryConnector) Pass additional information to the connector needed to process events.void
setAuditLog
(AuditLog auditLog) Receive an audit log object that can be used to record audit log messages.void
setMetadataCollectionId
(String metadataCollectionId) Set up the unique Id for this metadata collection.void
setOrganizationName
(String organizationName) Set up the name of the organization that runs/owns the server.void
setRepositoryEventProcessor
(OMRSRepositoryEventProcessor repositoryEventProcessor) Set up the repository event listener for this connector to use.void
setRepositoryHelper
(OMRSRepositoryHelper repositoryHelper) Set up a repository helper object for the repository connector to use.void
setRepositoryValidator
(OMRSRepositoryValidator repositoryValidator) Set up a repository validator for the repository connector to use.void
setServerName
(String serverName) Set up the name of the server where the metadata collection resides.void
setServerType
(String serverType) Set up the descriptive string describing the type of the server.void
setServerUserId
(String localServerUserId) Set up the userId that the local server should use when processing events and there is no external user driving the operation.void
start()
Indicates that the connector is completely configured and can begin processing.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
combineConfigurationProperties, disconnectConnectors, equals, getArrayConfigurationProperty, getArrayConfigurationProperty, getArrayConfigurationProperty, getAssetTypeName, getBooleanConfigurationProperty, getConnectedAssetProperties, getConnection, getConnectorInstanceId, getDateConfigurationProperty, getIntConfigurationProperty, getLongConfigurationProperty, getNetworkAddresses, getStringConfigurationProperty, getStringConfigurationProperty, getSuppliedPlaceholderProperties, hashCode, initialize, initializeConnectedAssetProperties, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, logExceptionRecord, logRecord, logRecord, throwMissingConfigurationProperty, throwMissingResource, throwNoAsset, throwWrongTypeOfAsset, throwWrongTypeOfResource, throwWrongTypeOfRootSchema, toString
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
Field Details
-
repositoryEventProcessor
-
repositoryEventMapperName
-
repositoryConnector
-
repositoryHelper
-
repositoryValidator
-
localMetadataCollectionId
-
localServerName
-
localServerType
-
localOrganizationName
-
localServerUserId
-
auditLog
-
-
Method Details
-
setAuditLog
Receive an audit log object that can be used to record audit log messages. The caller has initialized it with the correct component description and log destinations.- Specified by:
setAuditLog
in interfaceAuditLoggingComponent
- Parameters:
auditLog
- audit log object
-
getConnectorComponentDescription
Return the component description that is used by this connector in the audit log.- Specified by:
getConnectorComponentDescription
in interfaceAuditLoggingComponent
- Returns:
- id, name, description, wiki page URL.
-
initialize
public void initialize(String repositoryEventMapperName, OMRSRepositoryConnector repositoryConnector) Pass additional information to the connector needed to process events.- Specified by:
initialize
in interfaceOMRSRepositoryEventMapper
- Parameters:
repositoryEventMapperName
- repository event mapper name used for the source of the OMRS events.repositoryConnector
- ths is the connector to the local repository that the event mapper is processing events from. The repository connector is used to retrieve additional information necessary to fill out the OMRS Events.
-
setRepositoryHelper
Set up a repository helper object for the repository connector to use.- Specified by:
setRepositoryHelper
in interfaceOMRSRepositoryEventMapper
- Parameters:
repositoryHelper
- helper object for building TypeDefs and metadata instances.
-
setRepositoryValidator
Set up a repository validator for the repository connector to use.- Specified by:
setRepositoryValidator
in interfaceOMRSRepositoryEventMapper
- Parameters:
repositoryValidator
- validator object to check the validity of TypeDefs and metadata instances.
-
setServerName
Set up the name of the server where the metadata collection resides.- Specified by:
setServerName
in interfaceOMRSRepositoryEventMapper
- Parameters:
serverName
- String name
-
setServerType
Set up the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.- Specified by:
setServerType
in interfaceOMRSRepositoryEventMapper
- Parameters:
serverType
- String server type
-
setOrganizationName
Set up the name of the organization that runs/owns the server.- Specified by:
setOrganizationName
in interfaceOMRSRepositoryEventMapper
- Parameters:
organizationName
- String organization name
-
setServerUserId
Set up the userId that the local server should use when processing events and there is no external user driving the operation.- Specified by:
setServerUserId
in interfaceOMRSRepositoryEventMapper
- Parameters:
localServerUserId
- string user id
-
setMetadataCollectionId
Set up the unique Id for this metadata collection.- Specified by:
setMetadataCollectionId
in interfaceOMRSRepositoryEventMapper
- Parameters:
metadataCollectionId
- String unique Id
-
setRepositoryEventProcessor
Set up the repository event listener for this connector to use. The connector should pass each type or instance metadata change reported by its metadata repository's metadata on to the repository event listener.- Specified by:
setRepositoryEventProcessor
in interfaceOMRSRepositoryEventMapper
- Parameters:
repositoryEventProcessor
- listener responsible for distributing notifications of local changes to metadata types and instances to the rest of the open metadata repository cohort.
-
start
Indicates that the connector is completely configured and can begin processing.- Overrides:
start
in classConnectorBase
- Throws:
ConnectorCheckedException
- there is a problem within the connector.
-
disconnect
Free up any resources held since the connector is no longer needed.- Overrides:
disconnect
in classConnectorBase
- Throws:
ConnectorCheckedException
- there is a problem within the connector.
-