All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.daemon.ServerHandlerManager

java.lang.Object
   |
   +----w3c.jigsaw.daemon.ServerHandlerManager

public class ServerHandlerManager
extends Object
A ServerHandlerManager instance manages a set of ServerHandler.


Variable Index

 o CLASS_P
The server handler property class suffix.
 o CLONES_P
The server handler property clones prefix.
 o commandLine
Command line options that were provided at launch time.
 o handlers
The list of running server handlers.
 o HANDLERS_P
The property containing the servers to be launched at startup time.
 o manager
The Application-Wide server manager.
 o props
The server handler manager property list.
 o SERVER_GROUP_P
 o SERVER_USER_P

Method Index

 o enumerateServerHandlers()
Enumerate all the server handler manager's identifiers.
 o error(String)
Emit a non-fatal error.
 o fatal(String)
Emit a fatal error.
 o getCommandLine()
Get the command line options that were provided at launch time.
 o launchServerHandler(String, DaemonProperties)
Launch a new server handler.
 o lookupServerHandler(String)
Lookup the server handler having the given identifier.
 o main(String[])
 o unixStuff()
Do some UNIX specific initialization.
 o usage()

Variables

 o HANDLERS_P
 protected static final String HANDLERS_P
The property containing the servers to be launched at startup time. This property is a | separated list of server identifiers. Declaring a server to this list requires that either:

See Also:
 o CLASS_P
 public static final String CLASS_P
The server handler property class suffix.

 o CLONES_P
 public static final String CLONES_P
The server handler property clones prefix.

 o SERVER_USER_P
 public static final String SERVER_USER_P
 o SERVER_GROUP_P
 public static final String SERVER_GROUP_P
 o manager
 protected static ServerHandlerManager manager
The Application-Wide server manager.

 o handlers
 protected Hashtable handlers
The list of running server handlers.

 o props
 protected DaemonProperties props
The server handler manager property list.

 o commandLine
 protected String commandLine[]
Command line options that were provided at launch time.

Methods

 o error
 protected void error(String msg)
Emit a non-fatal error.

Parameters:
msg - The message to emit.
 o fatal
 protected void fatal(String msg)
Emit a fatal error. This will abort the whole process !

Parameters:
msg - The fata error message.
 o getCommandLine
 public String[] getCommandLine()
Get the command line options that were provided at launch time.

Returns:
A String array instance.
 o launchServerHandler
 protected void launchServerHandler(String id,
                                    DaemonProperties props)
Launch a new server handler. This method tries to launch a new server handler. If launching succeeds, it returns happily, otherwise, it emits an error message to the standard error stream.

Parameters:
identifier - The identifier of the server handler to be launched.
props - The properties from which the server handler should initialize itself.
 o lookupServerHandler
 public ServerHandler.  lookupServerHandler(String id)
Lookup the server handler having the given identifier.

Parameters:
id - The identifier of the server handler to look for.
Returns:
A ServerHandler instance, or null if undefined.
 o enumerateServerHandlers
 public Enumeration enumerateServerHandlers()
Enumerate all the server handler manager's identifiers.

Returns:
An enumeration of String.
 o unixStuff
 public void unixStuff()
Do some UNIX specific initialization. THis method exists straight if it cannot succeed !

 o usage
 public static void usage()
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index