|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CacheStatus> org.jboss.cache.CacheStatus
public enum CacheStatus
Various states that an object that has a four stage lifecycle
(i.e. create()
, start()
, stop()
and destroy()
) might be in.
Enum Constant Summary | |
---|---|
CREATED
The create() method has been completed but
start() has not been called. |
|
CREATING
The create() method has been called but not yet completed. |
|
DESTROYED
The destroy() method has completed. |
|
DESTROYING
The destroy() method has been called but has not yet completed. |
|
FAILED
A failure occurred during the execution of create() ,
start() , stop() or destroy() . |
|
INSTANTIATED
Object has been instantiated, but create() has not been called. |
|
STARTED
The start() method has completed. |
|
STARTING
The start() method has been called but has not yet completed. |
|
STOPPED
The stop() method has completed but destroy()
has not yet been called. |
|
STOPPING
The stop() method has been called but has not yet completed. |
Method Summary | |
---|---|
boolean |
allowInvocations()
|
boolean |
createAllowed()
|
boolean |
destroyAllowed()
|
boolean |
needCreateBeforeStart()
|
boolean |
needStopBeforeDestroy()
|
boolean |
needToDestroyFailedCache()
|
boolean |
startAllowed()
|
boolean |
stopAllowed()
|
static CacheStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CacheStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CacheStatus INSTANTIATED
public static final CacheStatus CREATING
create()
method has been called but not yet completed.
public static final CacheStatus CREATED
create()
method has been completed but
start()
has not been called.
public static final CacheStatus STARTING
start()
method has been called but has not yet completed.
public static final CacheStatus STARTED
start()
method has completed.
public static final CacheStatus STOPPING
stop()
method has been called but has not yet completed.
public static final CacheStatus STOPPED
stop()
method has completed but destroy()
has not yet been called. Conceptually equivalent to CREATED
.
public static final CacheStatus DESTROYING
destroy()
method has been called but has not yet completed.
public static final CacheStatus DESTROYED
destroy()
method has completed.
Conceptually equivalent to INSTANTIATED
.
public static final CacheStatus FAILED
create()
,
start()
, stop()
or destroy()
.
The next logical transition is to call destroy()
.
Method Detail |
---|
public static final CacheStatus[] values()
for(CacheStatus c : CacheStatus.values()) System.out.println(c);
public static CacheStatus valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic boolean createAllowed()
public boolean needToDestroyFailedCache()
public boolean startAllowed()
public boolean needCreateBeforeStart()
public boolean stopAllowed()
public boolean destroyAllowed()
public boolean needStopBeforeDestroy()
public boolean allowInvocations()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |