| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | AbstractLifeCycle.AbstractLifeCycleListener
Deprecated
this class is redundant now that
LifeCycle. has default methods.
|
| pack-priv static enum | |
| public class | AbstractLifeCycle.StopException
An exception, which if thrown by doStart will immediately stop the component |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final AutoLock | |
| private volatile AbstractLifeCycle. | |
| public static final String | |
| private static final Logger | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | addEventListener(EventListener listener)
Implements org. |
| protected void | |
| protected void | |
| public List | |
| public String | |
| public static String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public final void | |
| public final void | |
| public String |
| _eventListener | back to summary |
|---|---|
| private final List<EventListener> _eventListener | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| _state | back to summary |
|---|---|
| private volatile AbstractLifeCycle. | |
| FAILED | back to summary |
|---|---|
| public static final String FAILED | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| STARTED | back to summary |
|---|---|
| public static final String STARTED | |
| STARTING | back to summary |
|---|---|
| public static final String STARTING | |
| STOPPED | back to summary |
|---|---|
| public static final String STOPPED | |
| STOPPING | back to summary |
|---|---|
| public static final String STOPPING | |
| AbstractLifeCycle | back to summary |
|---|---|
| public AbstractLifeCycle() | |
| addEventListener | back to summary |
|---|---|
| public boolean addEventListener(EventListener listener) Implements org.
| |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Method to override to start the lifecycle
| |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Method to override to stop the lifecycle
| |
| getEventListeners | back to summary |
|---|---|
| public List | |
| getState | back to summary |
|---|---|
public String getState()
| |
| getState | back to summary |
|---|---|
| public static String getState(LifeCycle lc) | |
| isFailed | back to summary |
|---|---|
| public boolean isFailed() Implements org.
| |
| isRunning | back to summary |
|---|---|
| public boolean isRunning() Implements org.
| |
| isStarted | back to summary |
|---|---|
| public boolean isStarted() Implements org.
| |
| isStarting | back to summary |
|---|---|
| public boolean isStarting() Implements org.
| |
| isStopped | back to summary |
|---|---|
| public boolean isStopped() Implements org.
| |
| isStopping | back to summary |
|---|---|
| public boolean isStopping() Implements org.
| |
| removeEventListener | back to summary |
|---|---|
| public boolean removeEventListener(EventListener listener) Implements org.
| |
| setEventListeners | back to summary |
|---|---|
| public void setEventListeners(Collection<EventListener> eventListeners) | |
| setFailed | back to summary |
|---|---|
| private void setFailed(Throwable th) | |
| setStarted | back to summary |
|---|---|
| private void setStarted() | |
| setStarting | back to summary |
|---|---|
| private void setStarting() | |
| setStopped | back to summary |
|---|---|
| private void setStopped() | |
| setStopping | back to summary |
|---|---|
| private void setStopping() | |
| start | back to summary |
|---|---|
| public final void start() throws Exception Implements org. Doc from org. Starts the component. | |
| stop | back to summary |
|---|---|
| public final void stop() throws Exception Implements org. Doc from org. Stops the component. The component may wait for current activities to complete normally, but it can be interrupted. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
Deprecated
this class is redundant now that LifeCycle. has default methods.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | lifeCycleFailure(LifeCycle event, Throwable cause)
Overrides default org. |
| public void | lifeCycleStarted(LifeCycle event)
Overrides default org. |
| public void | lifeCycleStarting(LifeCycle event)
Overrides default org. |
| public void | lifeCycleStopped(LifeCycle event)
Overrides default org. |
| public void | lifeCycleStopping(LifeCycle event)
Overrides default org. |
| AbstractLifeCycleListener | back to summary |
|---|---|
| public AbstractLifeCycleListener() | |
| lifeCycleFailure | back to summary |
|---|---|
| public void lifeCycleFailure(LifeCycle event, Throwable cause) Overrides default org.
| |
| lifeCycleStarted | back to summary |
|---|---|
| public void lifeCycleStarted(LifeCycle event) Overrides default org.
| |
| lifeCycleStarting | back to summary |
|---|---|
| public void lifeCycleStarting(LifeCycle event) Overrides default org.
| |
| lifeCycleStopped | back to summary |
|---|---|
| public void lifeCycleStopped(LifeCycle event) Overrides default org.
| |
| lifeCycleStopping | back to summary |
|---|---|
| public void lifeCycleStopping(LifeCycle event) Overrides default org.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractLifeCycle. | |
| public static final AbstractLifeCycle. | |
| public static final AbstractLifeCycle. | |
| public static final AbstractLifeCycle. | |
| public static final AbstractLifeCycle. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractLifeCycle. | |
| public static AbstractLifeCycle. |
| FAILED | back to summary |
|---|---|
| public static final AbstractLifeCycle. | |
| STARTED | back to summary |
|---|---|
| public static final AbstractLifeCycle. | |
| STARTING | back to summary |
|---|---|
| public static final AbstractLifeCycle. | |
| STOPPED | back to summary |
|---|---|
| public static final AbstractLifeCycle. | |
| STOPPING | back to summary |
|---|---|
| public static final AbstractLifeCycle. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static AbstractLifeCycle. | |
| values | back to summary |
|---|---|
| public static AbstractLifeCycle. | |
| Access | Constructor and Description |
|---|---|
| public |
| StopException | back to summary |
|---|---|
| public StopException() | |