Class DaemonLoader.Controller
- java.lang.Object
-
- org.apache.commons.daemon.support.DaemonLoader.Controller
-
- All Implemented Interfaces:
DaemonController
- Enclosing class:
- DaemonLoader
public static class DaemonLoader.Controller extends Object implements DaemonController
A DaemonController that acts on the the globalDaemonLoaderstate.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfail()Shuts down daemon and logs failed message.voidfail(Exception exception)Shuts down daemon and logs failed message.voidfail(String message)Shuts down daemon and logs failed message.voidfail(String message, Exception exception)Shuts down daemon and logs failed message.voidreload()Reloads daemonvoidshutdown()Shuts down the daemon.
-
-
-
Method Detail
-
shutdown
public void shutdown() throws IllegalStateException
Description copied from interface:DaemonControllerShuts down the daemon.- Specified by:
shutdownin interfaceDaemonController- Throws:
IllegalStateException- If the daemon is not in a valid state to be shutdown
-
reload
public void reload() throws IllegalStateException
Description copied from interface:DaemonControllerReloads daemon- Specified by:
reloadin interfaceDaemonController- Throws:
IllegalStateException- If the daemon is not in a valid state to be reloaded
-
fail
public void fail()
Description copied from interface:DaemonControllerShuts down daemon and logs failed message.- Specified by:
failin interfaceDaemonController
-
fail
public void fail(String message)
Description copied from interface:DaemonControllerShuts down daemon and logs failed message.- Specified by:
failin interfaceDaemonController- Parameters:
message- The message to log
-
fail
public void fail(Exception exception)
Description copied from interface:DaemonControllerShuts down daemon and logs failed message.- Specified by:
failin interfaceDaemonController- Parameters:
exception- The exception to log
-
fail
public void fail(String message, Exception exception)
Description copied from interface:DaemonControllerShuts down daemon and logs failed message.- Specified by:
failin interfaceDaemonController- Parameters:
message- The message to logexception- The exception to log
-
-