public class AbstractLifeCycle extends Object implements LifeCycle, Serializable
Wraps a LifeCycle.State
.
LifeCycle.State
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance.
|
Constructor and Description |
---|
AbstractLifeCycle() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
equalsImpl(Object obj) |
LifeCycle.State |
getState()
Gets the life-cycle state.
|
protected int |
hashCodeImpl() |
void |
initialize() |
boolean |
isInitialized() |
boolean |
isStarted() |
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
protected void |
setStarted() |
protected void |
setStarting() |
protected void |
setState(LifeCycle.State newState) |
protected void |
setStopped() |
protected void |
setStopping() |
void |
start() |
void |
stop() |
protected static final Logger LOGGER
protected boolean equalsImpl(Object obj)
public LifeCycle.State getState()
LifeCycle
protected int hashCodeImpl()
public boolean isInitialized()
public boolean isStarting()
public boolean isStopping()
protected void setStarted()
protected void setStarting()
protected void setState(LifeCycle.State newState)
protected void setStopped()
protected void setStopping()
public void initialize()
initialize
in interface LifeCycle
Copyright © 1999-2017 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.