sunlabs.brazil.sunlabs

Class RestartHandler

public class RestartHandler extends Object implements Handler

Restart the server when a sigHUP is received. Only The handlers are restarted, by creating new instances of them, and calling the respective init() methods. None of the other server properties (such as the listening port) are effected. Any requests that are currently in-progress complete using the old configuration.

NOTES:

Properties:

config
The name of the configuration file to use for this server. Relative paths are resolved relative to the current directory. If no file is specified, the server continues to use its existing configuration [which has presumably been modified in-place]. If a config file is specified and the config file hasn't changed, then no restart is done.
keep
If set, and a config file is specified, the existing configuration (server.props) is not cleared first.
Method Summary
booleaninit(Server server, String prefix)
booleanrespond(Request request)

Method Detail

init

public boolean init(Server server, String prefix)

respond

public boolean respond(Request request)