com.javageeks.gjas
Class ServerManager

java.lang.Object
  |
  +--com.javageeks.gjas.ServerManager

public class ServerManager
extends java.lang.Object

Michael Neward


Constructor Summary
ServerManager()
           
 
Method Summary
static IServer addService(Service svc, ConfigProperties args)
          Call the method of the same name on the IServerManager Singleton instance.
static IServer addService(java.lang.String svcName, ConfigProperties args)
           
static IServer addServiceFromLocal(java.lang.String svcName, ConfigProperties args)
          This method loads the Service from the local ClassLoader (probably the bootstrap ClassLoader) and passes that to the IServerManager singleton instance.
static void deployService(java.lang.String serviceName, ClassLoaderStrategy strategy)
          Call the method of the same name on the IServerManager Singleton instance.
static void error(java.lang.Exception ex)
          Call the method of the same name on the IServerManager Singleton instance.
static void error(java.lang.String msg)
          Call the method of the same name on the IServerManager Singleton instance.
static IServer getService(java.lang.String instanceID)
          Call the method of the same name on the IServerManager Singleton instance.
static java.lang.String[] getServices()
          Call the method of the same name on the IServerManager Singleton instance.
static IServerManager instance()
          Get the IServerManager instance for this JVM; may return null if one hasn't been designated yet.
static void killService(java.lang.String instanceID)
          Call the method of the same name on the IServerManager Singleton instance.
static IServer loadService(Service svc)
          Call the method of the same name on the IServerManager Singleton instance.
static IServer loadService(java.lang.String svcName)
          Call the method of the same name on the IServerManager Singleton instance.
static void log(java.lang.Exception ex)
          Call the method of the same name on the IServerManager Singleton instance.
static void log(java.lang.String msg)
          Call the method of the same name on the IServerManager Singleton instance.
static void parseArg(java.lang.String arg)
          Parse a single line for a classname arg0 arg1 ...
static void parseInputStream(java.io.InputStream in)
          Parse an InputStream for the Service name to load and add to the ServerManager instance.
static void removeService(java.lang.String instanceID)
          Call the method of the same name on the IServerManager Singleton instance.
static void shutdown()
          Call the method of the same name on the IServerManager Singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerManager

public ServerManager()
Method Detail

instance

public static IServerManager instance()
Get the IServerManager instance for this JVM; may return null if one hasn't been designated yet.

parseInputStream

public static void parseInputStream(java.io.InputStream in)
                             throws java.io.IOException
Parse an InputStream for the Service name to load and add to the ServerManager instance.

parseArg

public static void parseArg(java.lang.String arg)
Parse a single line for a classname arg0 arg1 ... argN sequence, and add the Service to the ServerManager if everything parses successfully.

shutdown

public static void shutdown()
Call the method of the same name on the IServerManager Singleton instance.

deployService

public static void deployService(java.lang.String serviceName,
                                 ClassLoaderStrategy strategy)
Call the method of the same name on the IServerManager Singleton instance.

loadService

public static IServer loadService(java.lang.String svcName)
Call the method of the same name on the IServerManager Singleton instance.

loadService

public static IServer loadService(Service svc)
Call the method of the same name on the IServerManager Singleton instance.

addService

public static IServer addService(java.lang.String svcName,
                                 ConfigProperties args)

addService

public static IServer addService(Service svc,
                                 ConfigProperties args)
Call the method of the same name on the IServerManager Singleton instance.

addServiceFromLocal

public static IServer addServiceFromLocal(java.lang.String svcName,
                                          ConfigProperties args)
This method loads the Service from the local ClassLoader (probably the bootstrap ClassLoader) and passes that to the IServerManager singleton instance.

removeService

public static void removeService(java.lang.String instanceID)
Call the method of the same name on the IServerManager Singleton instance.

killService

public static void killService(java.lang.String instanceID)
Call the method of the same name on the IServerManager Singleton instance.

getServices

public static java.lang.String[] getServices()
Call the method of the same name on the IServerManager Singleton instance.

getService

public static IServer getService(java.lang.String instanceID)
Call the method of the same name on the IServerManager Singleton instance.

log

public static void log(java.lang.String msg)
Call the method of the same name on the IServerManager Singleton instance.

log

public static void log(java.lang.Exception ex)
Call the method of the same name on the IServerManager Singleton instance.

error

public static void error(java.lang.String msg)
Call the method of the same name on the IServerManager Singleton instance.

error

public static void error(java.lang.Exception ex)
Call the method of the same name on the IServerManager Singleton instance.