Class EnterpriseOMRSConnectorProvider
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.ConnectorProvider
org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryConnectorProviderBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.EnterpriseOMRSConnectorProvider
- All Implemented Interfaces:
AuditLoggingComponent
In the Open Connector Framework (OCF), a ConnectorProvider is a factory for a specific type of connector.
The EnterpriseOMRSConnectorProvider is the connector provider for the EnterpriseOMRSRepositoryConnector.
It will return new instances of the EnterpriseOMRSRepositoryConnector as long as it is configured with the connector
manager. This should happen at server startup, which means the exception due to a lack of connector
manager are unexpected.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase
connectorInterfaces, connectorTypeBean
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProvider
supportedConfigurationProperties, supportedTechnologyTypes, supportedTemplateTypes
-
Constructor Summary
ConstructorDescriptionEnterpriseOMRSConnectorProvider
(OMRSConnectorManager connectorManager, OMRSRepositoryContentManager repositoryContentManager, String localServerName, String localServerType, String owningOrganizationName, OMRSAuditLog auditLog, String enterpriseMetadataCollectionId, String enterpriseMetadataCollectionName, String localMetadataCollectionId) Set up the connector provider. -
Method Summary
Modifier and TypeMethodDescriptiongetConnector
(ConnectionProperties connection) Creates a new instance of an EnterpriseOMRSRepositoryConnector based on the information in the supplied connection.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProviderBase
equals, getClassForConnector, getConnector, getConnectorClassName, getConnectorComponentDescription, getConnectorType, getConnectorTypeProperties, getNewConnectorGUID, hashCode, setAuditLog, setConnectorClassName, setConnectorComponentDescription, setConnectorTypeProperties, toString
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.ConnectorProvider
getSupportedConfigurationProperties, getSupportedTechnologyTypes, getSupportedTemplateTypes
-
Constructor Details
-
EnterpriseOMRSConnectorProvider
public EnterpriseOMRSConnectorProvider(OMRSConnectorManager connectorManager, OMRSRepositoryContentManager repositoryContentManager, String localServerName, String localServerType, String owningOrganizationName, OMRSAuditLog auditLog, String enterpriseMetadataCollectionId, String enterpriseMetadataCollectionName, String localMetadataCollectionId) Set up the connector provider. This call is used to control whether the EnterpriseOMRSConnectorProvider produces connectors or not. An EnterpriseOMRSRepositoryConnector needs the connector manager to maintain the list of connectors to the repositories in the cohort.- Parameters:
connectorManager
- manager of the list of connectors to remote repositories.repositoryContentManager
- manager of lists of active and known types with associated helper methodslocalServerName
- name of the local server for this connection.localServerType
- type of the local server.owningOrganizationName
- name of the organization the owns the remote server.auditLog
- audit log for connectors.enterpriseMetadataCollectionId
- unique identifier for the combined metadata collection covered by the connected open metadata repositories.enterpriseMetadataCollectionName
- name of the combined metadata collection covered by the connected open metadata repositories. Used for messages.localMetadataCollectionId
- metadata collection id of local repository
-
-
Method Details
-
getConnector
public Connector getConnector(ConnectionProperties connection) throws ConnectionCheckedException, ConnectorCheckedException Creates a new instance of an EnterpriseOMRSRepositoryConnector based on the information in the supplied connection.- Overrides:
getConnector
in classConnectorProviderBase
- Parameters:
connection
- connection that should have all the properties needed by the Connector Provider to create a connector instance.- Returns:
- Connector instance of the connector.
- Throws:
ConnectionCheckedException
- if there are missing or invalid properties in the connectionConnectorCheckedException
- if there are issues instantiating or initializing the connector
-