Package dk.netarkivet.common.lifecycle
Interface ComponentLifeCycle
-
- All Known Implementing Classes:
HarvesterStatusReceiver
,HarvestJobGenerator
,HarvestJobManager
,HarvestSchedulerMonitorServer
,JobSupervisor
,LifeCycleComponent
public interface ComponentLifeCycle
Extends the default construction -> deconstruction object life cycle with addition steps, giving users ofComponentLifeCycle
better control over the component startup and shutdown phases.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
shutdown()
The inverse of thestart()
method.void
start()
Implements functionality for starting an instances of thisComponentLifeCycle
object.
-
-
-
Method Detail
-
start
void start()
Implements functionality for starting an instances of thisComponentLifeCycle
object. This may be loading files, establish connections, initializing data, starting threads, etc.
-
shutdown
void shutdown()
The inverse of thestart()
method. Contains functionality for deallocation of ressources, clearing data, closing connections, stopping threads, etc
-
-