cz.zcu.kiv.ppr.msloup.kernel
Enum FiberState

java.lang.Object
  extended by java.lang.Enum<FiberState>
      extended by cz.zcu.kiv.ppr.msloup.kernel.FiberState
All Implemented Interfaces:
Serializable, Comparable<FiberState>

public enum FiberState
extends Enum<FiberState>

Popisuje mozne stavy Fiberu

Author:
Martin Sloup

Enum Constant Summary
BLOCKED
          Fiber je blokovan a ceka nad eventem, dokud nebude signalizovan nebo nevyprsi timeout u eventu.
INITIALIZED
          Fiber je prave vytvoren, ale jeste nikdy nebyl naplanovan
RUNABLE
          Fiber je mozne naplanovat (vybrat Schedulerem)
RUNNING
          Fiber bezi na CPU
SLEEPED
          Fiber je uspan pomoci metody sleep a ceka do konce spanku.
TERMINATED
          Fiber je ukoncen.
 
Method Summary
static FiberState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FiberState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INITIALIZED

public static final FiberState INITIALIZED
Fiber je prave vytvoren, ale jeste nikdy nebyl naplanovan


RUNABLE

public static final FiberState RUNABLE
Fiber je mozne naplanovat (vybrat Schedulerem)


RUNNING

public static final FiberState RUNNING
Fiber bezi na CPU


BLOCKED

public static final FiberState BLOCKED
Fiber je blokovan a ceka nad eventem, dokud nebude signalizovan nebo nevyprsi timeout u eventu.


SLEEPED

public static final FiberState SLEEPED
Fiber je uspan pomoci metody sleep a ceka do konce spanku.


TERMINATED

public static final FiberState TERMINATED
Fiber je ukoncen. A jiz nebude nikdy naplanovan. Tenyo stav oznamuje, ze muze byt odebran ze seznamu Fiberu

Method Detail

values

public static FiberState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FiberState c : FiberState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FiberState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null