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,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
Fields Modifier and Type Field Description protected AuditLogauditLogprotected StringlocalMetadataCollectionIdprotected StringlocalOrganizationNameprotected StringlocalServerNameprotected StringlocalServerTypeprotected StringlocalServerUserIdprotected OMRSRepositoryConnectorrepositoryConnectorprotected StringrepositoryEventMapperNameprotected OMRSRepositoryEventProcessorrepositoryEventProcessorprotected OMRSRepositoryHelperrepositoryHelperprotected OMRSRepositoryValidatorrepositoryValidator-
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 voiddisconnect()Free up any resources held since the connector is no longer needed.voidinitialize(String repositoryEventMapperName, OMRSRepositoryConnector repositoryConnector)Pass additional information to the connector needed to process events.voidsetAuditLog(AuditLog auditLog)Receive an audit log object that can be used to record audit log messages.voidsetMetadataCollectionId(String metadataCollectionId)Set up the unique Id for this metadata collection.voidsetOrganizationName(String organizationName)Set up the name of the organization that runs/owns the server.voidsetRepositoryEventProcessor(OMRSRepositoryEventProcessor repositoryEventProcessor)Set up the repository event listener for this connector to use.voidsetRepositoryHelper(OMRSRepositoryHelper repositoryHelper)Set up a repository helper object for the repository connector to use.voidsetRepositoryValidator(OMRSRepositoryValidator repositoryValidator)Set up a repository validator for the repository connector to use.voidsetServerName(String serverName)Set up the name of the server where the metadata collection resides.voidsetServerType(String serverType)Set up the descriptive string describing the type of the server.voidsetServerUserId(String localServerUserId)Set up the userId that the local server should use when processing events and there is no external user driving the operation.voidstart()Indicates that the connector is completely configured and can begin processing.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorBase
equals, getConnectedAssetProperties, getConnection, getConnectorInstanceId, hashCode, initialize, initializeConnectedAssetProperties, isActive, toString
-
-
-
-
Field Detail
-
repositoryEventProcessor
protected OMRSRepositoryEventProcessor repositoryEventProcessor
-
repositoryEventMapperName
protected String repositoryEventMapperName
-
repositoryConnector
protected OMRSRepositoryConnector repositoryConnector
-
repositoryHelper
protected OMRSRepositoryHelper repositoryHelper
-
repositoryValidator
protected OMRSRepositoryValidator repositoryValidator
-
localMetadataCollectionId
protected String localMetadataCollectionId
-
localServerName
protected String localServerName
-
localServerType
protected String localServerType
-
localOrganizationName
protected String localOrganizationName
-
localServerUserId
protected String localServerUserId
-
auditLog
protected AuditLog auditLog
-
-
Method Detail
-
setAuditLog
public void setAuditLog(AuditLog auditLog)
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:
setAuditLogin interfaceAuditLoggingComponent- Parameters:
auditLog- audit log object
-
initialize
public void initialize(String repositoryEventMapperName, OMRSRepositoryConnector repositoryConnector)
Pass additional information to the connector needed to process events.- Specified by:
initializein 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
public void setRepositoryHelper(OMRSRepositoryHelper repositoryHelper)
Set up a repository helper object for the repository connector to use.- Specified by:
setRepositoryHelperin interfaceOMRSRepositoryEventMapper- Parameters:
repositoryHelper- helper object for building TypeDefs and metadata instances.
-
setRepositoryValidator
public void setRepositoryValidator(OMRSRepositoryValidator repositoryValidator)
Set up a repository validator for the repository connector to use.- Specified by:
setRepositoryValidatorin interfaceOMRSRepositoryEventMapper- Parameters:
repositoryValidator- validator object to check the validity of TypeDefs and metadata instances.
-
setServerName
public void setServerName(String serverName)
Set up the name of the server where the metadata collection resides.- Specified by:
setServerNamein interfaceOMRSRepositoryEventMapper- Parameters:
serverName- String name
-
setServerType
public void setServerType(String serverType)
Set up the descriptive string describing the type of the server. This might be the name of the product, or similar identifier.- Specified by:
setServerTypein interfaceOMRSRepositoryEventMapper- Parameters:
serverType- String server type
-
setOrganizationName
public void setOrganizationName(String organizationName)
Set up the name of the organization that runs/owns the server.- Specified by:
setOrganizationNamein interfaceOMRSRepositoryEventMapper- Parameters:
organizationName- String organization name
-
setServerUserId
public 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.- Specified by:
setServerUserIdin interfaceOMRSRepositoryEventMapper- Parameters:
localServerUserId- string user id
-
setMetadataCollectionId
public void setMetadataCollectionId(String metadataCollectionId)
Set up the unique Id for this metadata collection.- Specified by:
setMetadataCollectionIdin interfaceOMRSRepositoryEventMapper- Parameters:
metadataCollectionId- String unique Id
-
setRepositoryEventProcessor
public void setRepositoryEventProcessor(OMRSRepositoryEventProcessor repositoryEventProcessor)
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:
setRepositoryEventProcessorin interfaceOMRSRepositoryEventMapper- Parameters:
repositoryEventProcessor- listener responsible for distributing notifications of local changes to metadata types and instances to the rest of the open metadata repository cluster.
-
start
public void start() throws ConnectorCheckedExceptionIndicates that the connector is completely configured and can begin processing.- Overrides:
startin classConnectorBase- Throws:
ConnectorCheckedException- there is a problem within the connector.
-
disconnect
public void disconnect() throws ConnectorCheckedExceptionFree up any resources held since the connector is no longer needed.- Overrides:
disconnectin classConnectorBase- Throws:
ConnectorCheckedException- there is a problem within the connector.
-
-