Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.github.akurilov.commons.concurrent.AsyncRunnable

        com.github.akurilov.commons.concurrent.AsyncRunnable.State
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DaemonBase()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      static void closeAll()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.akurilov.commons.concurrent.AsyncRunnable

        await, await, isClosed, isInitial, isShutdown, isStarted, isStopped, shutdown, start, state, stop
    • Constructor Detail

      • DaemonBase

        protected DaemonBase()
    • Method Detail

      • close

        public final void close()
                         throws java.io.IOException
        Specified by:
        close in interface com.github.akurilov.commons.concurrent.AsyncRunnable
        Overrides:
        close in class com.github.akurilov.commons.concurrent.AsyncRunnableBase
        Throws:
        java.io.IOException
      • closeAll

        public static void closeAll()