dk.netarkivet.common.lifecycle
Interface ComponentLifeCycle

All Known Implementing Classes:
HarvestDispatcher, HarvestJobGenerator, HarvestJobManager, HarvestSchedulerMonitorServer, LifeCycleComponent

public interface ComponentLifeCycle

Extends the default construction -> deconstruction object life cycle with addition steps, giving users of ComponentLifeCycle better control over the component startup and shutdown phases.


Method Summary
 void shutdown()
          The inverse of the start() method.
 void start()
          Implements functionality for starting an instances of this ComponentLifeCycle object.
 

Method Detail

start

void start()
Implements functionality for starting an instances of this ComponentLifeCycle object. This may be loading files, establish connections, initializing data, starting threads, etc.


shutdown

void shutdown()
The inverse of the start() method. Contains functionality for deallocation of ressources, clearing data, closing connections, stopping threads, etc