Package org.apache.commons.daemon
Interface DaemonController
-
- All Known Implementing Classes:
DaemonLoader.Controller
public interface DaemonController
Defines methods needed by the DaemonLoader.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fail()
Shuts down daemon and logs failed message.void
fail(java.lang.Exception exception)
Shuts down daemon and logs failed message.void
fail(java.lang.String message)
Shuts down daemon and logs failed message.void
fail(java.lang.String message, java.lang.Exception exception)
Shuts down daemon and logs failed message.void
reload()
Reloads daemonvoid
shutdown()
Shuts down the daemon.
-
-
-
Method Detail
-
shutdown
void shutdown() throws java.lang.IllegalStateException
Shuts down the daemon.- Throws:
java.lang.IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
reload
void reload() throws java.lang.IllegalStateException
Reloads daemon- Throws:
java.lang.IllegalStateException
- If the daemon is not in a valid state to be reloaded
-
fail
void fail() throws java.lang.IllegalStateException
Shuts down daemon and logs failed message.- Throws:
java.lang.IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
fail
void fail(java.lang.String message) throws java.lang.IllegalStateException
Shuts down daemon and logs failed message.- Parameters:
message
- The message to log- Throws:
java.lang.IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
fail
void fail(java.lang.Exception exception) throws java.lang.IllegalStateException
Shuts down daemon and logs failed message.- Parameters:
exception
- The exception to log- Throws:
java.lang.IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
fail
void fail(java.lang.String message, java.lang.Exception exception) throws java.lang.IllegalStateException
Shuts down daemon and logs failed message.- Parameters:
message
- The message to logexception
- The exception to log- Throws:
java.lang.IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
-