org.bootchart.common
クラス Process

java.lang.Object
  上位を拡張 org.bootchart.common.Process
すべての実装されたインタフェース:
Comparable

public class Process
extends Object
implements Comparable

Process encapsulation.


フィールドの概要
 boolean active
          Whether the process is active.
 List childList
          A list of children Processes.
 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).
 
コンストラクタの概要
Process(int pid, String cmd)
          Created a new process.
 
メソッドの概要
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
          Returns a string representation of the process.
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

STATE_UNDEFINED

public static final int STATE_UNDEFINED
Undefined state.

関連項目:
定数フィールド値

STATE_RUNNING

public static final int STATE_RUNNING
Running state.

関連項目:
定数フィールド値

STATE_SLEEPING

public static final int STATE_SLEEPING
Sleeping state.

関連項目:
定数フィールド値

STATE_WAITING

public static final int STATE_WAITING
Uninterruptible sleep.

関連項目:
定数フィールド値

STATE_STOPPED

public static final int STATE_STOPPED
Stopped or traced.

関連項目:
定数フィールド値

STATE_ZOMBIE

public static final int STATE_ZOMBIE
Zombie state (defunct).

関連項目:
定数フィールド値

pid

public int pid
Process ID.


cmd

public String cmd
Command line.


desc

public String desc
Process decription (e.g. PID and command, script stack trace, etc.).


startTime

public Date startTime
Process start time.


duration

public long duration
Process duration in milliseconds.


parent

public Process parent
Parent process.


ppid

public int ppid
Parent process ID.


childList

public List childList
A list of children Processes.


samples

public List samples
A list of process statistics samples.


active

public boolean active
Whether the process is active. A process is active if it contains at least one non-sleeping sample. Idle processes are optionally filtered out.

コンストラクタの詳細

Process

public Process(int pid,
               String cmd)
Created a new process.

パラメータ:
pid - process ID
cmd - command line
メソッドの詳細

toString

public String toString()
Returns a string representation of the process.

オーバーライド:
クラス Object 内の toString
戻り値:
string representation

compareTo

public int compareTo(Object o)
定義:
インタフェース Comparable 内の compareTo

equals

public boolean equals(Object o)
オーバーライド:
クラス Object 内の equals

hashCode

public int hashCode()
オーバーライド:
クラス Object 内の hashCode