Package ch.autumo.beetroot.server
Class BeetRootServer
java.lang.Object
ch.autumo.beetroot.server.BaseServer
ch.autumo.beetroot.server.BeetRootServer
beetRoot stand-alone server.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.autumo.beetroot.server.BaseServer
BaseServer.Help -
Field Summary
FieldsFields inherited from class ch.autumo.beetroot.server.BaseServer
ansiErrServerName, ansiServerName, name, serverSocketFactory, startFileServer, startWebServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverwrite to do something after starting the server.protected voidOverwrite to do something after stopping the server.protected booleanOverwrite to do something before starting the server.protected voidOverwrite to do something before stopping the server.static voidCreate server and start it.Methods inherited from class ch.autumo.beetroot.server.BaseServer
customOperation, delete, findFile, getHelpText, getRootPath, getServerName, getShutDownHook, getValidCustomOperations, initializeLogging, printHealthStatus, processServerCommand, sendServerCommand, startServer, stopServer, store
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG
-
-
Constructor Details
-
BeetRootServer
Create an beetRoot server.- Parameters:
params- start or stop
-
-
Method Details
-
beforeStart
protected boolean beforeStart()Description copied from class:BaseServerOverwrite to do something before starting the server. Handle exceptions by your own!- Specified by:
beforeStartin classBaseServer- Returns:
- true id server should be started, otherwise false; e.g. a pre-condition is not met
-
afterStart
protected void afterStart()Description copied from class:BaseServerOverwrite to do something after starting the server. Handle exceptions by your own!- Specified by:
afterStartin classBaseServer
-
beforeStop
protected void beforeStop()Description copied from class:BaseServerOverwrite to do something before stopping the server. Handle exceptions by your own!- Specified by:
beforeStopin classBaseServer
-
afterStop
protected void afterStop()Description copied from class:BaseServerOverwrite to do something after stopping the server. Handle exceptions by your own!- Specified by:
afterStopin classBaseServer
-
main
Create server and start it.- Parameters:
args- only one: stop or start- Throws:
Exception- exception
-