- All Implemented Interfaces:
Serializable
,Comparable<OSProcess.State>
- Enclosing interface:
- OSProcess
Process and Thread Execution States
-
Enum Constant Summary
Enum ConstantDescriptionThe state resulting if the process fails to update statistics, probably due to termination.Intermediate state in process creationOther or unknown states not definedActively executing processInterruptible sleep stateStopped by the user, such as for debuggingSpecial case of waiting if the process has been intentionally suspended (Windows only)Blocked, uninterruptible sleep stateIntermediate state in process termination -
Method Summary
Modifier and TypeMethodDescriptionstatic OSProcess.State
Returns the enum constant of this type with the specified name.static OSProcess.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEW
Intermediate state in process creation -
RUNNING
Actively executing process -
SLEEPING
Interruptible sleep state -
WAITING
Blocked, uninterruptible sleep state -
ZOMBIE
Intermediate state in process termination -
STOPPED
Stopped by the user, such as for debugging -
OTHER
Other or unknown states not defined -
INVALID
The state resulting if the process fails to update statistics, probably due to termination. -
SUSPENDED
Special case of waiting if the process has been intentionally suspended (Windows only)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-