Package org.red5.daemon
Class EngineLauncher
- java.lang.Object
-
- org.red5.daemon.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 Summary
Constructors Constructor Description EngineLauncher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidinit(org.apache.commons.daemon.DaemonContext ctx)static voidmain(String[] args)The Java entry point.voidstart()voidstop()voidterminate()Cleanly stop the engine.static voidwindowsService(String[] args)Static methods called by prunsrv to start/stop the Windows service.voidwindowsStart()voidwindowsStop()
-
-
-
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:
initin interfaceorg.apache.commons.daemon.Daemon- Throws:
Exception
-
start
public void start()
- Specified by:
startin interfaceorg.apache.commons.daemon.Daemon
-
stop
public void stop()
- Specified by:
stopin interfaceorg.apache.commons.daemon.Daemon
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.apache.commons.daemon.Daemon
-
terminate
public void terminate()
Cleanly stop the engine.
-
-