Class OMRSMetadataHighwayRESTServices
java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.server.OMRSMetadataHighwayRESTServices
OMRSMetadataHighwayRESTServices provides the server-side implementation for REST services that support the
runtime queries of the connected cohorts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconnectToCohort
(String serverName, String userId, String cohortName) A new server needs to register the metadataCollectionId for its metadata repository with the other servers in the open metadata repository.disconnectFromCohort
(String serverName, String userId, String cohortName) Disconnect communications from a specific cohort.getCohortList
(String serverName, String userId) Return the details of the cohorts that this server is participating in.getLocalRegistration
(String serverName, String userId) Return the local registration information used by this server to register with open metadata repository cohorts.getLocalRegistration
(String serverName, String userId, String cohortName) Return the local registration information used by this server to register with the requested open metadata repository cohort.getRemoteRegistrations
(String serverName, String userId, String cohortName) Return the list of remote registrations received from a specific cohort.unregisterFromCohort
(String serverName, String userId, String cohortName) Unregister from a specific cohort and disconnect from cohort communications.
-
Constructor Details
-
OMRSMetadataHighwayRESTServices
public OMRSMetadataHighwayRESTServices()Default constructor
-
-
Method Details
-
getCohortList
Return the details of the cohorts that this server is participating in.- Parameters:
serverName
- name of serveruserId
- calling user- Returns:
- variety of properties
-
getLocalRegistration
Return the local registration information used by this server to register with open metadata repository cohorts. No registration time is provided. Use the cohort specific version to retrieve the registration time.- Parameters:
serverName
- server to queryuserId
- calling user- Returns:
- registration properties for server
-
getLocalRegistration
public CohortMembershipResponse getLocalRegistration(String serverName, String userId, String cohortName) Return the local registration information used by this server to register with the requested open metadata repository cohort.- Parameters:
serverName
- server to queryuserId
- calling usercohortName
- name of cohort- Returns:
- registration properties for server
-
connectToCohort
A new server needs to register the metadataCollectionId for its metadata repository with the other servers in the open metadata repository. It only needs to do this once and uses a timestamp to record that the registration event has been sent. If the server has already registered in the past, it sends a reregistration request.- Parameters:
serverName
- server to queryuserId
- calling usercohortName
- name of cohort- Returns:
- flag indicating that the cohort name was recognized
-
getRemoteRegistrations
public CohortMembershipListResponse getRemoteRegistrations(String serverName, String userId, String cohortName) Return the list of remote registrations received from a specific cohort.- Parameters:
serverName
- name of this serveruserId
- calling usercohortName
- name of cohort- Returns:
- list of remote members
-
disconnectFromCohort
Disconnect communications from a specific cohort.- Parameters:
serverName
- server to queryuserId
- calling usercohortName
- name of cohort- Returns:
- boolean flag to indicate success.
-
unregisterFromCohort
Unregister from a specific cohort and disconnect from cohort communications.- Parameters:
serverName
- server to queryuserId
- calling usercohortName
- name of cohort- Returns:
- boolean flag to indicate success.
-