All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ss98.system.Service

java.lang.Object
   |
   +----ss98.system.Service

public class Service
extends Object
implements Serializable
The service class is the class that watches processes for specific behavior associated with a user defined service such as httpd or ftpd etc. It also compares the statistics of a service to a set of user defined values and reports on them. At some point in time the ability to add more than one stat to a color or size monitor should be added. For example add the percent of memory use to the percent of cpu use and devide by the nuber of pages in memory.


Variable Index

 o ColorStat
The process stat to monitor to determine the color of it's representation.
 o ColorStatMax
The maximum value of the size stat.
 o ColorStatMin
The minumum value of the size stat.
 o name
The name of the service exp.
 o PIDs
The PIDs of processes which are a members of this service.
 o pname
Executable name of service exp.
 o PPID
The Parent PID.
 o SizeStat
The process stat to monitor to determine the size of it's representation.
 o SizeStatMax
The maximum size possible for the stat.
 o SizeStatMin
The minumum value of the size stat.

Constructor Index

 o Service()

Method Index

 o update(Vector)
This updates all stats on a service.

Variables

 o name
 String name
The name of the service exp. "telnet"

 o pname
 String pname
Executable name of service exp. "in.telnetd". Perhaps there should be multiple possibilities?

 o SizeStat
 String SizeStat
The process stat to monitor to determine the size of it's representation.

 o SizeStatMin
 int SizeStatMin
The minumum value of the size stat.

 o SizeStatMax
 int SizeStatMax
The maximum size possible for the stat. If a stat goes over this, we will ignore it.

 o ColorStat
 String ColorStat
The process stat to monitor to determine the color of it's representation.

 o ColorStatMin
 int ColorStatMin
The minumum value of the size stat.

 o ColorStatMax
 int ColorStatMax
The maximum value of the size stat.

 o PIDs
 Vector PIDs
The PIDs of processes which are a members of this service.

 o PPID
 int PPID
The Parent PID. This is the PID of the Process which forks off other like services.

Constructors

 o Service
 public Service()

Methods

 o update
 public boolean update(Vector Procs)
This updates all stats on a service. If something changed, true is returned, else false if everything stayed the same. It does all of this by searching through a vector of processes.


All Packages  Class Hierarchy  This Package  Previous  Next  Index