Class ConformanceServicesInstanceMap
java.lang.Object
org.odpi.openmetadata.conformance.server.ConformanceServicesInstanceMap
ConformanceServicesInstanceMap provides the mapping between server name and the Java instances of the active services
for a server.
The Java service instances for a server are defined by the configuration document. When the server is initialized
the configuration document is read and the appropriate services are initialized.
It is possible that multiple OMAG servers are initialized in a since JVM/process. The role of this class is to
keep references to the service instances for each server so that when a request is made to a specific server,
it can be routed to the appropriate service instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(String serverName) Return the instance for this server.void
removeInstance
(String serverName) Remove the instance for this server.void
setNewInstance
(String serverName, ConformanceServicesInstance instance) Add a new server instance to the server map.
-
Constructor Details
-
ConformanceServicesInstanceMap
public ConformanceServicesInstanceMap()Constructor
-
-
Method Details
-
setNewInstance
Add a new server instance to the server map.- Parameters:
serverName
- name of the serverinstance
- instance object
-
getInstance
Return the instance for this server.- Parameters:
serverName
- name of the server- Returns:
- OMRSRepositoryServicesInstance object
-
removeInstance
Remove the instance for this server.- Parameters:
serverName
- name of the server
-