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:
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent,org.odpi.openmetadata.frameworks.connectors.SecureConnectorExtension,org.odpi.openmetadata.frameworks.connectors.VirtualConnectorExtension,OMRSRepositoryEventMapper
- Direct Known Subclasses:
OMRSRepositoryEventMapperBase
public abstract class OMRSRepositoryEventMapperConnector
extends org.odpi.openmetadata.frameworks.connectors.ConnectorBase
implements OMRSRepositoryEventMapper, org.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent
OMRSRepositoryEventMapperBase provides a base class for implementors of OMRSRepositoryEventMapper.
-
Method Summary
Modifier and TypeMethodDescriptionvoidFree up any resources held since the connector is no longer needed.org.odpi.openmetadata.frameworks.auditlog.ComponentDescriptionReturn the component description that is used by this connector in the audit log.voidinitialize(String repositoryEventMapperName, OMRSRepositoryConnector repositoryConnector) Pass additional information to the connector needed to process events.voidsetAuditLog(org.odpi.openmetadata.frameworks.auditlog.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, initializeEmbeddedConnectors, initializeSecretsStoreConnector, isActive, toStringMethods inherited from class org.odpi.openmetadata.frameworks.connectors.Connector
clearStatisticProperty, clearStatisticTimestamp, getConnectorStatistics, getStatisticCounter, getStatisticProperty, getStatisticTimestamp, incrementStatisticCounter, initializeStatisticCounter, setStatisticProperty, setStatisticTimestamp
-
Method Details
-
setAuditLog
public void setAuditLog(org.odpi.openmetadata.frameworks.auditlog.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 interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- Parameters:
auditLog- audit log object
-
getConnectorComponentDescription
public org.odpi.openmetadata.frameworks.auditlog.ComponentDescription getConnectorComponentDescription()Return the component description that is used by this connector in the audit log.- Specified by:
getConnectorComponentDescriptionin interfaceorg.odpi.openmetadata.frameworks.auditlog.AuditLoggingComponent- 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:
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
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
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
Set up the name of the server where the metadata collection resides.- Specified by:
setServerNamein 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:
setServerTypein interfaceOMRSRepositoryEventMapper- Parameters:
serverType- String server type
-
setOrganizationName
Set up the name of the organization that runs/owns the server.- Specified by:
setOrganizationNamein 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:
setServerUserIdin interfaceOMRSRepositoryEventMapper- Parameters:
localServerUserId- string user id
-
setMetadataCollectionId
Set up the unique Id for this metadata collection.- Specified by:
setMetadataCollectionIdin 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:
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 cohort.
-
start
public void start() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionIndicates that the connector is completely configured and can begin processing.- Overrides:
startin classorg.odpi.openmetadata.frameworks.connectors.ConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the connector.
-
disconnect
public void disconnect() throws org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedExceptionFree up any resources held since the connector is no longer needed.- Overrides:
disconnectin classorg.odpi.openmetadata.frameworks.connectors.ConnectorBase- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.ConnectorCheckedException- there is a problem within the connector.
-