Interface DaemonController
- All Known Implementing Classes:
DaemonLoader.Controller
public interface DaemonController
Defines methods needed by the DaemonLoader.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fail()
Shuts down daemon and logs failed message.void
Shuts down daemon and logs failed message.void
Shuts down daemon and logs failed message.void
Shuts down daemon and logs failed message.void
reload()
Reloads daemonvoid
shutdown()
Shuts down the daemon.
-
Method Details
-
shutdown
Shuts down the daemon.- Throws:
IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
reload
Reloads daemon- Throws:
IllegalStateException
- If the daemon is not in a valid state to be reloaded
-
fail
Shuts down daemon and logs failed message.- Throws:
IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
fail
Shuts down daemon and logs failed message.- Parameters:
message
- The message to log- Throws:
IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
fail
Shuts down daemon and logs failed message.- Parameters:
exception
- The exception to log- Throws:
IllegalStateException
- If the daemon is not in a valid state to be shutdown
-
fail
Shuts down daemon and logs failed message.- Parameters:
message
- The message to logexception
- The exception to log- Throws:
IllegalStateException
- If the daemon is not in a valid state to be shutdown
-