Interface OMRSLocalRepository
- All Superinterfaces:
OMRSMetadataCollectionManager
- All Known Implementing Classes:
LocalOMRSRepositoryConnector
OMRSLocalRepository is an interface used by the OMRS components to retrieve information about the local
repository, to register listeners and to get access to the connector for the local repository.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the instance event processor that should be passed all incoming instance events received from the cohorts that this server is a member of.Return the TypeDef event processor that should be passed all incoming TypeDef events received from the cohorts that this server is a member of.Returns the Connection to the local repository that can be used by remote servers to create an OMRS repository connector to call this server in order to access the local repository.Return the local server name.Return the local server type.Returns the unique identifier (guid) of the local repository's metadata collection.Returns the display name of the local repository's metadata collection.Return the name of the organization that owns this local repository.Return the event manager that the local repository uses toboolean
isActiveCohortMember
(String metadataCollectionId) Is the metadata collection id for an active member of the cohort.void
setRemoteCohortMetadataCollectionIds
(String cohortName, List<String> remoteCohortMetadataCollectionIds) Set up the list of metadata collection identifiers from the remote members of a connected cohort.Methods inherited from interface org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSMetadataCollectionManager
getMaxPageSize, getMetadataCollection, getRepositoryName, getServerName, getServerType, getServerUserId, setMaxPageSize, setMetadataCollectionId, setOrganizationName, setRepositoryHelper, setRepositoryName, setRepositoryValidator, setServerName, setServerType, setServerUserId
-
Method Details
-
getMetadataCollectionId
String getMetadataCollectionId()Returns the unique identifier (guid) of the local repository's metadata collection.- Specified by:
getMetadataCollectionId
in interfaceOMRSMetadataCollectionManager
- Returns:
- String guid
-
getMetadataCollectionName
String getMetadataCollectionName()Returns the display name of the local repository's metadata collection.- Returns:
- String guid
-
getLocalRepositoryRemoteConnection
Connection getLocalRepositoryRemoteConnection()Returns the Connection to the local repository that can be used by remote servers to create an OMRS repository connector to call this server in order to access the local repository.- Returns:
- Connection object
-
getOutboundRepositoryEventManager
OMRSRepositoryEventManager getOutboundRepositoryEventManager()Return the event manager that the local repository uses to- Returns:
- outbound repository event manager
-
getIncomingTypeDefEventProcessor
OMRSTypeDefEventProcessor getIncomingTypeDefEventProcessor()Return the TypeDef event processor that should be passed all incoming TypeDef events received from the cohorts that this server is a member of.- Returns:
- OMRSTypeDefEventProcessor for the local repository.
-
getIncomingInstanceEventProcessor
LocalOMRSInstanceEventProcessor getIncomingInstanceEventProcessor()Return the instance event processor that should be passed all incoming instance events received from the cohorts that this server is a member of.- Returns:
- OMRSInstanceEventProcessor for the local repository.
-
getLocalServerName
String getLocalServerName()Return the local server name. This is used for outbound events.- Returns:
- String name
-
getLocalServerType
String getLocalServerType()Return the local server type. This is used for outbound events.- Returns:
- String name
-
getOrganizationName
String getOrganizationName()Return the name of the organization that owns this local repository.- Specified by:
getOrganizationName
in interfaceOMRSMetadataCollectionManager
- Returns:
- String name
-
setRemoteCohortMetadataCollectionIds
void setRemoteCohortMetadataCollectionIds(String cohortName, List<String> remoteCohortMetadataCollectionIds) Set up the list of metadata collection identifiers from the remote members of a connected cohort.- Parameters:
cohortName
- name of cohortremoteCohortMetadataCollectionIds
- list of metadata collection ids
-
isActiveCohortMember
Is the metadata collection id for an active member of the cohort. This is used to set up the provenance type correctly (between LOCAL_COHORT and DEREGISTERED_REPOSITORY).- Parameters:
metadataCollectionId
- id to test- Returns:
- boolean flag meaning that the metadata collection is recognized
-