Class EngineLauncher

  • All Implemented Interfaces:
    org.apache.commons.daemon.Daemon

    public class EngineLauncher
    extends Object
    implements org.apache.commons.daemon.Daemon
    Launch the Engine from a variety of sources, either through a main() or invoked through Apache Daemon.
    • Constructor Detail

      • EngineLauncher

        public EngineLauncher()
    • Method Detail

      • main

        public static void main​(String[] args)
        The Java entry point.
        Parameters:
        args - Command line arguments
      • windowsService

        public static void windowsService​(String[] args)
        Static methods called by prunsrv to start/stop the Windows service. Pass the argument "start" to start the service, and pass "stop" to stop the service. Taken lock, stock and barrel from Christopher Pierce's blog at http://blog.platinumsolutions.com/node/234
        Parameters:
        args - Arguments from prunsrv command line
      • windowsStart

        public void windowsStart()
      • windowsStop

        public void windowsStop()
      • init

        public void init​(org.apache.commons.daemon.DaemonContext ctx)
                  throws Exception
        Specified by:
        init in interface org.apache.commons.daemon.Daemon
        Throws:
        Exception
      • start

        public void start()
        Specified by:
        start in interface org.apache.commons.daemon.Daemon
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.commons.daemon.Daemon
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.apache.commons.daemon.Daemon
      • terminate

        public void terminate()
        Cleanly stop the engine.