psdi.server

Class ServiceCoordinator

  • java.lang.Object
    • psdi.server.ServiceCoordinator
    • Constructor Detail

      • ServiceCoordinator

        public ServiceCoordinator(MXServer mxServer)
    • Method Detail

      • configure

        public void configure(MXServer mxServer,
                              java.util.Properties configData)
        Read in configuration information. As follows...
        1. It pulls relevant data out of the configData Properties.
        2. It reads in the named services.config file. Pulling out the information about services and attributes for this server.
        3. It then creates each of the specified services on this this server.
        4. Finally, it calls the configure() of each of these Services.

        Properties used from the configData parameter:
        • mxe.services.configFile : name of the file to read
      • init

        public void init()
        Initialization. This method delegates init() calls down to each of the services that are 'bound' in this ServiceCoordinator. Note: the System Services are initialized before the Application Services. So that the app services can use the system services of course.
        Note:init() has been modified so that each Service now get's it's own thread to start in.
      • lookup

        public ServiceRemote lookup(java.lang.String name)
                             throws MXException
        Lookup a Service. Will return the "least loaded" service of the type specified in name.
        Throws:
        MXException
      • lookupLocal

        public ServiceRemote lookupLocal(java.lang.String name)
                                  throws MXException
        Lookup a Service. Will return only a local service of the type specified in name.
        Throws:
        MXException
      • getStorage

        protected ServiceStorage getStorage()
        Gets the Storage class associated with this ServiceCoordinator. Used by "friends and family", e.g. for testing and debug.
      • getLocalAppList

        public java.lang.String[] getLocalAppList()
        Get a list (a String[]) of the name of the Application Services running on this MXServer.
      • purge

        protected void purge(java.lang.String url)
        Purge a Service from the JNDI and ServiceStorage spaces.
      • purge

        protected void purge(ServiceRemote svcRmt)
        Purge a Service from the JNDI and ServiceStorage spaces.