network.events
Class  RunawayProcessEvent
java.lang.Object
  |
  +--network.events.Event
        |
        +--network.events.CPUMonitorEvent
              |
              +--network.events.ProcessMonitoringEvent
                    |
                    +--network.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
 
 
 
 
 
| 
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.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 | 
 
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 eventeventGenerationTime - The time at which this event was generatedagentURN - The URN of the agent reporting this eventpd - The process information used to determine if a process is a runaway processpsExecCount - The number of times the ps command has been executedalertLevel - The alert level of this eventalarmLevel - The alarm level of this event
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