network.events
Class RunawayProcessEvent

java.lang.Object
  extended bynetwork.events.Event
      extended bynetwork.events.CPUMonitorEvent
          extended bynetwork.events.ProcessMonitoringEvent
              extended bynetwork.events.RunawayProcessEvent
All Implemented Interfaces:
java.io.Serializable

public class RunawayProcessEvent
extends ProcessMonitoringEvent

RunawayProcessEvent indicates that a process has been running for too long, that it is using too much memory, or that it is using too much CPU time

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.events.CPUMonitorEvent
psResults
 
Fields inherited from class network.events.Event
agentURN, domainName, eventDeliverTryNumber, priority
 
Constructor Summary
RunawayProcessEvent(java.lang.String eventName, long eventGenerationTime, ajanta.naming.URN agentURN, ProcessData pd, long psExecCount, int alertLevel, int alarmLevel)
           
 
Method Summary
 java.lang.String getColumnNames()
          Returns a list of column names for use in SQL statements.
 
Methods inherited from class network.events.ProcessMonitoringEvent
equals, getExecutionCount, getFieldNames, getFieldValues, getProcessData, getSQLEventString, toString
 
Methods inherited from class network.events.CPUMonitorEvent
getVector
 
Methods inherited from class network.events.Event
createSQL, getAgentURN, getAlarmLevel, getAlertLevel, getDomainName, getEventDeliverTryNumber, getEventGenerationTime, getEventID, getEventLocation, getID, getINTMonth, getMyClass, getName, getSQLTime, getSQLTime, setAlarmLevel, setAlertLevel, setDomainName, setEventID, setPriority, toSQL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RunawayProcessEvent

public RunawayProcessEvent(java.lang.String eventName,
                           long eventGenerationTime,
                           ajanta.naming.URN agentURN,
                           ProcessData pd,
                           long psExecCount,
                           int alertLevel,
                           int alarmLevel)
Parameters:
eventName - The name of this event
eventGenerationTime - The time at which this event was generated
agentURN - The URN of the agent reporting this event
pd - The process information used to determine if a process is a runaway process
psExecCount - The number of times the ps command has been executed
alertLevel - The alert level of this event
alarmLevel - The alarm level of this event
Method Detail

getColumnNames

public java.lang.String getColumnNames()
Returns a list of column names for use in SQL statements. Makes the tuple (location, processID, command) UNIQUE so we don't insert the same process repeatedly

Overrides:
getColumnNames in class ProcessMonitoringEvent
Returns:
A string containing a comma seperated list of column names