Class OMRSMetadataHighwayRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectToCohort(String serverName, 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 cohortName) Disconnect communications from a specific cohort.getCohortList(String serverName) Return the details of the cohorts that this server is participating in.getLocalRegistration(String serverName) Return the local registration information used by this server to register with open metadata repository cohorts.getLocalRegistration(String serverName, String cohortName) Return the local registration information used by this server to register with the requested open metadata repository cohort.getRemoteRegistrations(String serverName, String cohortName) Return the list of remote registrations received from a specific cohort.unregisterFromCohort(String serverName, String cohortName) Unregister from a specific cohort and disconnect from cohort communications.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
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 server- 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 query- Returns:
- registration properties for server
-
getLocalRegistration
Return the local registration information used by this server to register with the requested open metadata repository cohort.- Parameters:
serverName- server to querycohortName- 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 querycohortName- name of cohort- Returns:
- flag indicating that the cohort name was recognized
-
getRemoteRegistrations
Return the list of remote registrations received from a specific cohort.- Parameters:
serverName- name of this servercohortName- name of cohort- Returns:
- list of remote members
-
disconnectFromCohort
Disconnect communications from a specific cohort.- Parameters:
serverName- server to querycohortName- name of cohort- Returns:
- boolean flag to indicate success.
-
unregisterFromCohort
Unregister from a specific cohort and disconnect from cohort communications.- Parameters:
serverName- server to querycohortName- name of cohort- Returns:
- boolean flag to indicate success.
-