All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ss_work.Process

java.lang.Object
   |
   +----ss_work.Process

public class Process
extends Object

Variable Index

 o blocked
blocked
 o cmaj_flt
cumulative number of major page faults
 o cmin_flt
cumulative number of minor page faults
 o cnswap
cumulative Kilobytes on swap device
 o command
simple name of executeble
 o cstime
cumulative system time
 o cutime
cumulative user time
 o devices
 o drs
stack resident size
 o dt
dirty
 o eip
? instruction pointer
 o end_code
? ending code address in memory
 o esp
? segment pointer
 o exit_signal
exit signal
 o files
 o flags
flags as in long format F filed
 o gid
group ID
 o HZ
 o it_real_value
?
 o lrs
library resident size
 o maj_flt
number of major page faults
 o MemTotal
 o MemUsage
 o min_flt
number of minor page faults
 o nice
nice value
 o nswap
Kilobytes on swap device
 o pgrp
process group ID
 o pid
process ID
 o pipes
 o ppid
parent process ID
 o priority
priority, time in HZ of process's possible timeslice
 o resident
Kb resident in memory
 o rlim
? resident pages ?
 o rss
resident set size, kb of program in memory
 o session
session ID
 o share
Kb in shared memory
 o sigcatch
catch signal set
 o sigignore
ignore signal set
 o signal
signal ?
 o size
Kb in total memory
 o Sockets
 o sockets
 o start_code
? starting code address in memory
 o start_stack
? address of stack ?
 o start_time
time process was started
 o stat
 o state
stae of process (only in 2.1 kernels)!!!!!!
 o stateL
long version of state
 o statm
 o status
 o stime
system time
 o timeout
timeout
 o trs
text resident size
 o tty
minor device number of tty
 o tty_pgrp
controlling tty process group ID
 o uid
user ID
 o uptime
 o utime
user time
 o vmdata
data size
 o vmexe
exe size
 o vmlck
lock size
 o vmlib
library size
 o vmrss
resident set size
 o vmsize
total vm size
 o vmstk
stack size
 o vsize
total virtual memory size
 o wchan
kernel function where the process is sleeping (/etc/psdatabase)

Constructor Index

 o Process(String)

Method Index

 o ()
 o getCpuUsage()
cpu usage howmany cycles has a process used since it's been running
 o getDevices()
return a vector of devices associated with this process (/dev/ttyS1)
 o getFiles()
return a vector of file names associated with this process (mypaper.txt)
 o getHZ()
this tells us howmany ticks per second, we take the number of calls to the timer interupt and devide it by uptime
 o getMemTotal()
this gets the total system memory, w/o swap added in but will only parse once
 o getMemUsage()
this matches what ps.c had for determineing memory usage.
 o getpagesize()
method to get system page size
 o getPipes()
return a vector of pipes associated with this process (thread communication, or real pipes ala IPC)
 o getSockets()
return a vector of sockets associated with this process (tcp,udp,raw,stream/unix)
 o getUptime()
this tells us howmany seconds the system has been running
 o readlink(String)
method to get accurate symbolic links
 o toString()
this get called by System.out.println(process) makes debuging eaiser.
 o update()
this is a method that will update a processes information

Variables

 o pid
 long pid
process ID

 o command
 String command
simple name of executeble

 o state
 String state
stae of process (only in 2.1 kernels)!!!!!!

 o ppid
 long ppid
parent process ID

 o pgrp
 long pgrp
process group ID

 o session
 long session
session ID

 o tty
 long tty
minor device number of tty

 o tty_pgrp
 long tty_pgrp
controlling tty process group ID

 o flags
 long flags
flags as in long format F filed

 o min_flt
 long min_flt
number of minor page faults

 o cmin_flt
 long cmin_flt
cumulative number of minor page faults

 o maj_flt
 long maj_flt
number of major page faults

 o cmaj_flt
 long cmaj_flt
cumulative number of major page faults

 o utime
 long utime
user time

 o stime
 long stime
system time

 o cutime
 long cutime
cumulative user time

 o cstime
 long cstime
cumulative system time

 o priority
 long priority
priority, time in HZ of process's possible timeslice

 o nice
 long nice
nice value

 o timeout
 long timeout
timeout

 o it_real_value
 long it_real_value
?

 o start_time
 long start_time
time process was started

 o vsize
 long vsize
total virtual memory size

 o rss
 long rss
resident set size, kb of program in memory

 o rlim
 long rlim
? resident pages ?

 o start_code
 long start_code
? starting code address in memory

 o end_code
 long end_code
? ending code address in memory

 o start_stack
 long start_stack
? address of stack ?

 o esp
 long esp
? segment pointer

 o eip
 long eip
? instruction pointer

 o signal
 long signal
signal ?

 o blocked
 long blocked
blocked

 o sigignore
 long sigignore
ignore signal set

 o sigcatch
 long sigcatch
catch signal set

 o wchan
 long wchan
kernel function where the process is sleeping (/etc/psdatabase)

 o nswap
 long nswap
Kilobytes on swap device

 o cnswap
 long cnswap
cumulative Kilobytes on swap device

 o exit_signal
 long exit_signal
exit signal

 o size
 long size
Kb in total memory

 o resident
 long resident
Kb resident in memory

 o share
 long share
Kb in shared memory

 o trs
 long trs
text resident size

 o lrs
 long lrs
library resident size

 o drs
 long drs
stack resident size

 o dt
 long dt
dirty

 o stateL
 String stateL
long version of state

 o uid
 long uid
user ID

 o gid
 long gid
group ID

 o vmsize
 long vmsize
total vm size

 o vmlck
 long vmlck
lock size

 o vmrss
 long vmrss
resident set size

 o vmdata
 long vmdata
data size

 o vmstk
 long vmstk
stack size

 o vmexe
 long vmexe
exe size

 o vmlib
 long vmlib
library size

 o stat
 String stat[]
 o statm
 String statm[]
 o status
 String status[]
 o sockets
 Vector sockets
 o Sockets
 Vector Sockets
 o files
 Vector files
 o pipes
 Vector pipes
 o devices
 Vector devices
 o uptime
 double uptime
 o HZ
 int HZ
 o MemTotal
 long MemTotal
 o MemUsage
 float MemUsage

Constructors

 o Process
 public Process(String pid)

Methods

 o
 static void ()
 o getSockets
 public Vector getSockets()
return a vector of sockets associated with this process (tcp,udp,raw,stream/unix)

 o getFiles
 public Vector getFiles()
return a vector of file names associated with this process (mypaper.txt)

 o getPipes
 public Vector getPipes()
return a vector of pipes associated with this process (thread communication, or real pipes ala IPC)

 o getDevices
 public Vector getDevices()
return a vector of devices associated with this process (/dev/ttyS1)

 o getCpuUsage
 public float getCpuUsage()
cpu usage howmany cycles has a process used since it's been running

 o getHZ
 private int getHZ()
this tells us howmany ticks per second, we take the number of calls to the timer interupt and devide it by uptime

 o getUptime
 private double getUptime()
this tells us howmany seconds the system has been running

 o getMemTotal
 private long getMemTotal()
this gets the total system memory, w/o swap added in but will only parse once

 o getMemUsage
 public float getMemUsage()
this matches what ps.c had for determineing memory usage.

 o toString
 public String toString()
this get called by System.out.println(process) makes debuging eaiser.

Overrides:
toString in class Object
 o update
 public void update()
this is a method that will update a processes information

 o readlink
 private native String readlink(String filename)
method to get accurate symbolic links

 o getpagesize
 private native int getpagesize()
method to get system page size


All Packages  Class Hierarchy  This Package  Previous  Next  Index