| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--network.detectors.EventDetector
        |
        +--network.detectors.CPUMonitorEventDetector
The CPUMonitorEvent Detector generates a list of all currently running processes and respective statistics on a monitored host, using the UNIX `ps' command. This detector may be triggered by calling its generateEvent method.
| Field Summary | |
private  java.lang.String[] | 
defaultLocalTriggeringEvents
 | 
| Fields inherited from class network.detectors.EventDetector | 
agentURN, attempts, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, printRunningThreadsFlag, remoteTriggeringEvents, reportTable | 
| Constructor Summary | |
CPUMonitorEventDetector(ConfigObject configObj)
The default constructor.  | 
|
| Method Summary | |
 java.util.Vector | 
executeSystemCommand(java.lang.String command)
Executes the specified command in a new process.  | 
 java.util.Vector | 
generateEvent(network.events.Event triggeredEvent)
Generates a CPUMonitor Event containing the current processes and respective statistics for each process on the monitored host.  | 
 java.lang.String | 
getGeneratingEventClassName()
Returns the event classname that this detector may generate.  | 
 java.util.Vector | 
parseCommandResults(java.util.Vector results)
Parses the output from the command in this class' generateEvent method and returns a vector of Object arrays that represents the elements of the string separated.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
private java.lang.String[] defaultLocalTriggeringEvents
| Constructor Detail | 
public CPUMonitorEventDetector(ConfigObject configObj)
| Method Detail | 
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName in class EventDetectorpublic java.util.Vector executeSystemCommand(java.lang.String command)
command - command to be run
public java.util.Vector parseCommandResults(java.util.Vector results)
results - the vector in which to store `ps' output data.
public java.util.Vector generateEvent(network.events.Event triggeredEvent)
generateEvent in class EventDetectortriggeredEvent - the event that triggered this detector.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||