|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetwork.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 |
Fields inherited from class network.detectors.EventDetector |
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, 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(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 |
Constructor Detail |
public CPUMonitorEventDetector(ConfigObject configObj)
Method Detail |
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName
in class EventDetector
public 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(Event triggeredEvent)
generateEvent
in class EventDetector
triggeredEvent
- the event that triggered this detector.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |