@ApplicationScoped public class IndyLifecycleManager extends Object
BootupAction, MigrationAction, and StartupAction instances in order), and the
shutdown sequence (managing ShutdownAction instances in order.| Modifier | Constructor and Description |
|---|---|
protected |
IndyLifecycleManager() |
|
IndyLifecycleManager(org.commonjava.indy.stats.IndyVersioning versioning,
Iterable<BootupAction> bootupActionInstances,
Iterable<MigrationAction> migrationActionInstances,
Iterable<StartupAction> startupActionInstances,
Iterable<ShutdownAction> shutdownActionInstances) |
| Modifier and Type | Method and Description |
|---|---|
Runnable |
createShutdownRunnable(Object server)
Create a Runnable that can be used in
Runtime.addShutdownHook(Thread). |
void |
init() |
void |
start()
Start sequence is:
Start all
BootupAction instances, with highest priority executing first.
Run all MigrationAction instances, with highest priority executing first.
Run all StartupAction instances, with highest priority executing first.
|
void |
stop()
Run all
ShutdownAction instances, with highest priority executing first. |
protected IndyLifecycleManager()
public IndyLifecycleManager(org.commonjava.indy.stats.IndyVersioning versioning,
Iterable<BootupAction> bootupActionInstances,
Iterable<MigrationAction> migrationActionInstances,
Iterable<StartupAction> startupActionInstances,
Iterable<ShutdownAction> shutdownActionInstances)
@PostConstruct public void init()
public void start()
throws IndyLifecycleException
BootupAction instances, with highest priority executing first.MigrationAction instances, with highest priority executing first.StartupAction instances, with highest priority executing first.IndyLifecycleExceptionpublic void stop()
throws IndyLifecycleException
ShutdownAction instances, with highest priority executing first.IndyLifecycleExceptionpublic Runnable createShutdownRunnable(Object server)
Runtime.addShutdownHook(Thread).server - Copyright © 2011-2018-2018. All Rights Reserved.