Class GlossaryAuthorViewServicesInstanceMap
- java.lang.Object
-
- org.odpi.openmetadata.viewservices.glossaryauthor.initialization.GlossaryAuthorViewServicesInstanceMap
-
public class GlossaryAuthorViewServicesInstanceMap extends Object
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
Constructors Constructor Description GlossaryAuthorViewServicesInstanceMap()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GlossaryAuthorViewServicesInstancegetInstance(String serverName)Return the instance for this server.static voidremoveInstanceForJVM(String serverName)Remove the instance for this server.static voidsetNewInstanceForJVM(String serverName, GlossaryAuthorViewServicesInstance instance)Add a new server instance to the server map.
-
-
-
Method Detail
-
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
public static void removeInstanceForJVM(String serverName)
Remove the instance for this server.- Parameters:
serverName- name of the server
-
getInstance
public GlossaryAuthorViewServicesInstance getInstance(String serverName)
Return the instance for this server.- Parameters:
serverName- name of the server- Returns:
- OMRSRepositoryServicesInstance object
-
-