Class GlossaryAuthorViewServicesInstanceMap
java.lang.Object
org.odpi.openmetadata.viewservices.glossaryauthor.initialization.GlossaryAuthorViewServicesInstanceMap
GlossaryAuthorViewServicesInstanceMap provides the mapping for inbound REST requests to the appropriate instances
for the requested server. The map is maintained in a static so it is scoped to the class loader.
Instances of this class call the synchronized static methods to work with the map.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInstance
(String serverName) Return the instance for this server.static void
removeInstanceForJVM
(String serverName) Remove the instance for this server.static void
setNewInstanceForJVM
(String serverName, GlossaryAuthorViewServicesInstance instance) Add a new server instance to the server map.
-
Constructor Details
-
GlossaryAuthorViewServicesInstanceMap
public GlossaryAuthorViewServicesInstanceMap()Constructor
-
-
Method Details
-
setNewInstanceForJVM
public static void setNewInstanceForJVM(String serverName, GlossaryAuthorViewServicesInstance instance) Add a new server instance to the server map.- Parameters:
serverName
- name of the serverinstance
- instance object
-
removeInstanceForJVM
Remove the instance for this server.- Parameters:
serverName
- name of the server
-
getInstance
Return the instance for this server.- Parameters:
serverName
- name of the server- Returns:
- OMRSRepositoryServicesInstance object
-