| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.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 | |
|---|---|
| CREATEDThe create()method has been completed butstart()has not been called. | |
| CREATINGThe create()method has been called but not yet completed. | |
| DESTROYEDThe destroy()method has completed. | |
| DESTROYINGThe destroy()method has been called but has not yet completed. | |
| FAILEDA failure occurred during the execution of create(),start(),stop()ordestroy(). | |
| INSTANTIATEDObject has been instantiated, but create() has not been called. | |
| STARTEDThe start()method has completed. | |
| STARTINGThe start()method has been called but has not yet completed. | |
| STOPPEDThe stop()method has completed butdestroy()has not yet been called. | |
| STOPPINGThe stop()method has been called but has not yet completed. | |
| Method Summary | |
|---|---|
|  boolean | createAllowed() | 
|  boolean | destroyAllowed() | 
|  boolean | needCreateBeforeStart() | 
|  boolean | needStopBeforeDestroy() | 
|  boolean | needToDestroyFailedCache() | 
|  boolean | startAllowed() | 
|  boolean | stopAllowed() | 
| static CacheStatus | valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.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()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||