SchedulerAbstractLeakPreventer, AbstractLifeCycle, AppContextLeakPreventer, AWTLeakPreventer, ContainerLifeCycle, DOMLeakPreventer, DriverManagerLeakPreventer, EatWhatYouKill, ExecutorSizedThreadPool, ExecutorThreadPool, GCThreadLeakPreventer, Java2DLeakPreventer, LDAPLeakPreventer, LeakDetector, LoginConfigurationLeakPreventer, PathWatcher, QueuedThreadPool, ReservedThreadExecutor, Scanner, ScheduledExecutorScheduler, SecurityProviderLeakPreventer, SslContextFactory, SslSelectionDump, StopLifeCycle, Sweeper, TimerScheduler@ManagedObject("Lifecycle Interface for startable components") public interface LifeCycle
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
LifeCycle.Listener |
Listener.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addLifeCycleListener(LifeCycle.Listener listener) |
|
boolean |
isFailed() |
|
boolean |
isRunning() |
|
boolean |
isStarted() |
|
boolean |
isStarting() |
|
boolean |
isStopped() |
|
boolean |
isStopping() |
|
void |
removeLifeCycleListener(LifeCycle.Listener listener) |
|
void |
start() |
Starts the component.
|
static void |
start(java.lang.Object object) |
Utility to start an object if it is a LifeCycle and to convert
any exception thrown to a
RuntimeException |
void |
stop() |
Stops the component.
|
static void |
stop(java.lang.Object object) |
Utility to stop an object if it is a LifeCycle and to convert
any exception thrown to a
RuntimeException |
@ManagedOperation(value="Starts the instance", impact="ACTION") void start() throws java.lang.Exception
java.lang.Exception - If the component fails to startisStarted(),
stop(),
isFailed()@ManagedOperation(value="Stops the instance", impact="ACTION") void stop() throws java.lang.Exception
java.lang.Exception - If the component fails to stopisStopped(),
start(),
isFailed()boolean isRunning()
boolean isStarted()
start(),
isStarting()boolean isStarting()
isStarted()boolean isStopping()
isStopped()boolean isStopped()
stop(),
isStopping()boolean isFailed()
void addLifeCycleListener(LifeCycle.Listener listener)
void removeLifeCycleListener(LifeCycle.Listener listener)
static void start(java.lang.Object object)
RuntimeExceptionobject - The instance to start.java.lang.RuntimeException - if the call to start throws an exception.static void stop(java.lang.Object object)
RuntimeExceptionobject - The instance to stop.java.lang.RuntimeException - if the call to stop throws an exception.Copyright © 1995–2017 Webtide. All rights reserved.