Package com.emc.mongoose.base.concurrent
Class DaemonBase
- java.lang.Object
-
- com.github.akurilov.commons.concurrent.AsyncRunnableBase
-
- com.emc.mongoose.base.concurrent.DaemonBase
-
- All Implemented Interfaces:
Daemon,com.github.akurilov.commons.concurrent.AsyncRunnable,java.rmi.Remote
- Direct Known Subclasses:
LoadStepBase,LoadStepContextImpl,StorageDriverBase
public abstract class DaemonBase extends com.github.akurilov.commons.concurrent.AsyncRunnableBase implements Daemon
Modifies the async runnable to make sure that all instances are closed even if a user hits ^C
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDaemonBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static voidcloseAll()-
Methods inherited from class com.github.akurilov.commons.concurrent.AsyncRunnableBase
await, await, doClose, doShutdown, doStart, doStop, isClosed, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stop
-
-
-
-
Method Detail
-
close
public final void close() throws java.io.IOException- Specified by:
closein interfacecom.github.akurilov.commons.concurrent.AsyncRunnable- Overrides:
closein classcom.github.akurilov.commons.concurrent.AsyncRunnableBase- Throws:
java.io.IOException
-
closeAll
public static void closeAll()
-
-