Class BeetRootServer

java.lang.Object
ch.autumo.beetroot.server.BaseServer
ch.autumo.beetroot.server.BeetRootServer

public class BeetRootServer extends BaseServer
beetRoot stand-alone server.
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
  • Constructor Details

    • BeetRootServer

      public BeetRootServer(String[] params)
      Create an beetRoot server.
      Parameters:
      params - start or stop
  • Method Details

    • beforeStart

      protected boolean beforeStart()
      Description copied from class: BaseServer
      Overwrite to do something before starting the server. Handle exceptions by your own!
      Specified by:
      beforeStart in class BaseServer
      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: BaseServer
      Overwrite to do something after starting the server. Handle exceptions by your own!
      Specified by:
      afterStart in class BaseServer
    • beforeStop

      protected void beforeStop()
      Description copied from class: BaseServer
      Overwrite to do something before stopping the server. Handle exceptions by your own!
      Specified by:
      beforeStop in class BaseServer
    • afterStop

      protected void afterStop()
      Description copied from class: BaseServer
      Overwrite to do something after stopping the server. Handle exceptions by your own!
      Specified by:
      afterStop in class BaseServer
    • main

      public static void main(String[] args) throws Exception
      Create server and start it.
      Parameters:
      args - only one: stop or start
      Throws:
      Exception - exception