Class AbstractLifecycle

java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
All Implemented Interfaces:
Lifecycle
Direct Known Subclasses:
AbstractBinding, AbstractSessionKernel, com.inductiveautomation.ignition.gateway.auth.token.AuthTokenManager, ClientHtmlLoader, ComponentModel, ComponentModelDelegate, EdtWatchdog, FileWatcher, IdpProxyWebServer, MessageHandlerCollection, NamedResourceHandler, PageModel, PerspectiveSessionCollection, PollingBlockingTask, PollingFuture, PropertyReference, ResourceCollectionLifecycle, ResourceCollectionLifecycleFactory, SessionKernelWrapper, SessionStats, SingletonResourceHandler, SystemPropertiesManager, ViewModel

public abstract class AbstractLifecycle extends Object implements Lifecycle
  • Constructor Details

    • AbstractLifecycle

      public AbstractLifecycle()
  • Method Details

    • startup

      public final void startup()
      Call to start this thing up. The first time this is called, onStartup() will be called. Subsequent invocations will throw an IllegalStateException
      Specified by:
      startup in interface Lifecycle
    • onStartup

      protected abstract void onStartup()
    • shutdown

      public final void shutdown()
      Call to shut this thing down. Must have called startup first for this to have an effect.
      Specified by:
      shutdown in interface Lifecycle
    • onShutdown

      protected abstract void onShutdown()
    • isRunning

      public boolean isRunning()
      Returns:
      true after startup() is called and before shutdown() is called.