| org.w3c.jigsaw.daemon.ServerHandler
ServerHandler | public interface ServerHandler (Code) | | A ServerHandler is a class that handles an accepting socket.
|
Method Summary | |
public ServerHandler | clone(ServerHandlerManager shm, String identifier, ObservableProperties props) Clone this server handler, and custmozie it with the given properties.
Once cloned, the new server is assumed to be running happily,
as if it had been initialized.
Parameters: shm - The global server handler manager. Parameters: identifier - The new ServerHandler identifier. Parameters: props - The properties that overide part of the configuration ofthe cloned server. | public void | errlog(String msg) Log an error into this server's error log. | public ResourceReference | getConfigResource() Get the root, configuration resource for that server. | public String | getIdentifier() Get this server identifier. | public InetAddress | getInetAddress() Get the network addresses on which this server is listening. | public void | initialize(ServerHandlerManager shm, String id, ObservableProperties props) Initialize the server from the given set of properties. | public void | log(String msg) Log a normal message into this server's log. | public void | shutdown() Shutdown this server handler. | public void | start() Start the server, after everything has been initialized. | public void | trace(String msg) Emit a debugging trace on behalf of this server. |
clone | public ServerHandler clone(ServerHandlerManager shm, String identifier, ObservableProperties props) throws ServerHandlerInitException(Code) | | Clone this server handler, and custmozie it with the given properties.
Once cloned, the new server is assumed to be running happily,
as if it had been initialized.
Parameters: shm - The global server handler manager. Parameters: identifier - The new ServerHandler identifier. Parameters: props - The properties that overide part of the configuration ofthe cloned server. A newly created server, sharing the configurationof the cloned server, except for the config options defined bythe given property set. exception: ServerHandlerInitException - if initialization failed. |
errlog | public void errlog(String msg)(Code) | | Log an error into this server's error log.
Parameters: msg - The message to log. |
getConfigResource | public ResourceReference getConfigResource()(Code) | | Get the root, configuration resource for that server.
A ContainerResource instance. |
getIdentifier | public String getIdentifier()(Code) | | Get this server identifier.
A String identifying this server context. |
getInetAddress | public InetAddress getInetAddress()(Code) | | Get the network addresses on which this server is listening.
The InetAddress this server is listening to. |
initialize | public void initialize(ServerHandlerManager shm, String id, ObservableProperties props) throws ServerHandlerInitException(Code) | | Initialize the server from the given set of properties.
This method is called by the ServerManager instance, when launching
the appropriate servers.
A Server instance that has initialize itself successfully is
considered to be running.
Parameters: shm - The global server handler manager. Parameters: identifier - A String identifying the server. Parameters: props - The property set this server should use to initializeitself. exception: ServerHandlerInitException - if initialization failed. |
log | public void log(String msg)(Code) | | Log a normal message into this server's log.
Parameters: msg - The message to log. |
shutdown | public void shutdown()(Code) | | Shutdown this server handler.
This is a synchronous method, that will return only once the server
has been shutdown entirely (all the resources it uses have been
released).
This server handler clones are considered shutdown too.
|
trace | public void trace(String msg)(Code) | | Emit a debugging trace on behalf of this server.
Parameters: msg - The trace to emit. |
|
|