Class 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 Detail

      • GlossaryAuthorViewServicesInstanceMap

        public GlossaryAuthorViewServicesInstanceMap()
        Constructor
    • 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 server
        instance - 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