org.locomotive.loco
Class ServerHandler
java.lang.Object
|
+--org.locomotive.loco.ServerHandler
- public class ServerHandler
- extends java.lang.Object
- implements Handler
The Server Handler. The server provides a window into the server itself,
rather than to any particular module handler. It is accessed by the
handler url-name "srv". Valid commands include:
- srv - display status
- srv?shutdown - mark the server for shutdown.
calls Loco.setStopAccepting
- srv?status - display status
- srv?reload_templates - tells the CachePageManager to flush cached
Templates
- srv?reload_hrt - attempts to reload the hrt.conf file and
re-initialize all the Handlers.
- srv?reload_dbconnpool - wipes all the present connections from the
Locomotive database connection pool and fills it with new ones
- See Also:
Loco.setStopAccepting()
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ServerHandler
public ServerHandler()
handleRequest
public void handleRequest(HandlerData hd_in)
- this is the entry point for the server
- Specified by:
- handleRequest in interface Handler
handleShutdownRequest
protected static java.lang.String handleShutdownRequest(User user)
handleTemplateReloadRequest
protected static java.lang.String handleTemplateReloadRequest(User user)
handleHRTReloadRequest
protected static java.lang.String handleHRTReloadRequest(User user)
handleDBConnPoolReloadRequest
protected static java.lang.String handleDBConnPoolReloadRequest(User user)
getStatusVars
protected static java.lang.String getStatusVars()
- send back a nice status page
getBogusCommandMessage
protected static java.lang.String getBogusCommandMessage()
getExpiredMessage
protected static java.lang.String getExpiredMessage()
init
public boolean init(Log initlog)
- Place holder. Currently the ServerHandler does not need any
special initializations.
- Specified by:
- init in interface Handler
shutdown
public boolean shutdown(Log initlog)
- Place holder. Currently the ServerHandler does not need any
special initializations.
- Specified by:
- shutdown in interface Handler