Class ConformanceSuiteConnectorConsumer
java.lang.Object
org.odpi.openmetadata.conformance.workbenches.repository.connectorconsumer.ConformanceSuiteConnectorConsumer
- All Implemented Interfaces:
OMRSConnectorConsumer
ConformanceSuiteConnectorConsumer receives connector objects for servers connected to the same cohort(s)
as the conformance suite OMAG server. It is called by the enterprise connector manager. Its responsibility
is to store the technology under test's connector in the work pad to allow the workbench to run the tests.
Most tests are run by the workbench thread to free up the inbound event processing thread that this class is
called on.
-
Constructor Summary
ConstructorDescriptionConstructor is given information to scope the tests. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRemoteConnector
(String metadataCollectionId, OMRSRepositoryConnector remoteConnector) Pass the connector to one of the remote repositories in the metadata repository cohort.void
Call disconnect on all registered connectors and stop calling them.void
removeRemoteConnector
(String metadataCollectionId) Pass the metadata collection id for a repository that has just left the metadata repository cohort.void
setLocalConnector
(String metadataCollectionId, LocalOMRSRepositoryConnector localConnector) Pass the connector for the local repository to the connector consumer.
-
Constructor Details
-
ConformanceSuiteConnectorConsumer
Constructor is given information to scope the tests.- Parameters:
workPad
- place to add information received from the enterprise connector manager.
-
-
Method Details
-
setLocalConnector
public void setLocalConnector(String metadataCollectionId, LocalOMRSRepositoryConnector localConnector) Pass the connector for the local repository to the connector consumer.- Specified by:
setLocalConnector
in interfaceOMRSConnectorConsumer
- Parameters:
metadataCollectionId
- Unique identifier for the metadata collectionlocalConnector
- OMRSRepositoryConnector object for the local repository.
-
addRemoteConnector
public void addRemoteConnector(String metadataCollectionId, OMRSRepositoryConnector remoteConnector) Pass the connector to one of the remote repositories in the metadata repository cohort.- Specified by:
addRemoteConnector
in interfaceOMRSConnectorConsumer
- Parameters:
metadataCollectionId
- Unique identifier for the metadata collectionremoteConnector
- OMRSRepositoryConnector object providing access to the remote repository.
-
removeRemoteConnector
Pass the metadata collection id for a repository that has just left the metadata repository cohort.- Specified by:
removeRemoteConnector
in interfaceOMRSConnectorConsumer
- Parameters:
metadataCollectionId
- identifier of the metadata collection that is no longer available.
-
disconnectAllConnectors
public void disconnectAllConnectors()Call disconnect on all registered connectors and stop calling them. The OMRS is about to shutdown.- Specified by:
disconnectAllConnectors
in interfaceOMRSConnectorConsumer
-