public static enum Process.State extends Enum<Process.State>
| Enum Constant and Description |
|---|
Dead
State X (from Linux 2.6.0 onward)
State x (Linux 2.6.33 to 3.13 only)
|
NotExists |
Paging
State W Paging (only before Linux 2.6.0)
|
Parked
P Parked (Linux 3.9 to 3.13 only)
|
Running
State R
|
Sleeping
State S in an interruptible wait
|
Stopped
State T (on a signal) or (before Linux 2.6.33) trace stopped
|
TracingStop
State t Tracing stop (Linux 2.6.33 onward)
|
UNKNOW |
Waiting
State D in uninterruptible disk sleep
|
Wakekill
State K (Linux 2.6.33 to 3.13 only)
|
Waking
W Waking (Linux 2.6.33 to 3.13 only)
|
Zombie
State Z
|
| Modifier and Type | Method and Description |
|---|---|
static Process.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Process.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Process.State NotExists
public static final Process.State Running
public static final Process.State Sleeping
public static final Process.State Waiting
public static final Process.State Zombie
public static final Process.State Stopped
public static final Process.State TracingStop
public static final Process.State Paging
public static final Process.State Dead
public static final Process.State Wakekill
public static final Process.State Waking
public static final Process.State Parked
public static final Process.State UNKNOW
public static Process.State[] values()
for (Process.State c : Process.State.values()) System.out.println(c);
public static Process.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.