org.bootchart.common
public class Process extends Object implements Comparable
Field Summary | |
---|---|
boolean | active
Whether the process is active. |
List | childList A list of children Process es. |
String | cmd Command line. |
String | desc Process decription (e.g. |
long | duration Process duration in milliseconds. |
Process | parent Parent process. |
int | pid Process ID. |
int | ppid Parent process ID. |
List | samples A list of process statistics samples. |
Date | startTime Process start time. |
static int | STATE_RUNNING Running state. |
static int | STATE_SLEEPING Sleeping state. |
static int | STATE_STOPPED Stopped or traced. |
static int | STATE_UNDEFINED Undefined state. |
static int | STATE_WAITING Uninterruptible sleep. |
static int | STATE_ZOMBIE Zombie state (defunct). |
Constructor Summary | |
---|---|
Process(int pid, String cmd)
Created a new process.
|
Method Summary | |
---|---|
int | compareTo(Object o) |
boolean | equals(Object o) |
int | hashCode() |
String | toString()
Returns a string representation of the process.
|
Process
es.Parameters: pid process ID cmd command line
Returns: string representation