Skip to content

Writing Cohort Member Client Connectors

A cohort member client connector is used by the Open Metadata Repository Services (OMRS) to issue federated queries to the other members of a cohort. Each cohort member advertises the connection for its client connector when it registers with the cohort, and the other members use this connection to create the connector that calls it.

Egeria's OMRS provides a default REST API implementation and a corresponding client:

  • REST Cohort Client Connector supports remote calls to the OMRS REST API. Its connector provider is OMRSRESTRepositoryConnectorProvider, its connector is OMRSRESTRepositoryConnector and its metadata collection is OMRSRESTMetadataCollection.

The connection for this connector is configured in the localRepositoryRemoteConnection property of the cohort member's LocalRepositoryConfig in its configuration document. It is set up automatically when the local repository is configured - see Repository Services Section.

The definition of the cohort member client connector interface is defined in the repository-services-apis module in the org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector Java package. It is the same interface - the OMRSRepositoryConnector abstract class and the OMRSMetadataCollection it returns - as the repository connectors that are used to provide the local repository to a metadata access store, so that the OMRS issues calls to the same interface irrespective of whether the call is to the local repository or to a remote cohort member. See Writing Repository Connectors for details of this interface.


Raise an issue or comment below