@ManagedObject(value="Lifecycle Interface for startable components") public interface LifeCycle
Modifier and Type | Interface and Description |
---|---|
static interface |
LifeCycle.Listener
Listener.
|
Modifier and Type | Method and 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.
|
void |
stop()
Stops the component.
|
@ManagedOperation(value="Starts the instance", impact="ACTION") void start() throws Exception
Exception
- If the component fails to startisStarted()
,
stop()
,
isFailed()
@ManagedOperation(value="Stops the instance", impact="ACTION") void stop() throws Exception
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)
Copyright © 1995-2015 Webtide. All Rights Reserved.