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.
-
ColorStat
- The process stat to monitor to determine the color of it's representation.
-
ColorStatMax
- The maximum value of the size stat.
-
ColorStatMin
- The minumum value of the size stat.
-
name
- The name of the service exp.
-
PIDs
- The PIDs of processes which are a members of this service.
-
pname
- Executable name of service exp.
-
PPID
- The Parent PID.
-
SizeStat
- The process stat to monitor to determine the size of it's representation.
-
SizeStatMax
- The maximum size possible for the stat.
-
SizeStatMin
- The minumum value of the size stat.
-
Service()
-
-
update(Vector)
- This updates all stats on a service.
name
String name
- The name of the service exp. "telnet"
pname
String pname
- Executable name of service exp. "in.telnetd".
Perhaps there should be multiple possibilities?
SizeStat
String SizeStat
- The process stat to monitor to determine the size of it's representation.
SizeStatMin
int SizeStatMin
- The minumum value of the size stat.
SizeStatMax
int SizeStatMax
- The maximum size possible for the stat. If a stat goes over this, we will ignore it.
ColorStat
String ColorStat
- The process stat to monitor to determine the color of it's representation.
ColorStatMin
int ColorStatMin
- The minumum value of the size stat.
ColorStatMax
int ColorStatMax
- The maximum value of the size stat.
PIDs
Vector PIDs
- The PIDs of processes which are a members of this service.
PPID
int PPID
- The Parent PID. This is the PID of the Process which forks off other like services.
Service
public Service()
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