network.events
Class UserPresenceEvent

java.lang.Object
  extended bynetwork.events.Event
      extended bynetwork.events.UserPresenceEvent
All Implemented Interfaces:
java.io.Serializable

public class UserPresenceEvent
extends Event

This event indicates that a user is logged on.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.events.Event
agentURN, domainName, eventDeliverTryNumber, priority
 
Constructor Summary
UserPresenceEvent(java.lang.String eventName, long eventGenerationTime, ajanta.naming.URN agentURN, java.lang.String user, java.lang.String host, int alertLevel, int alarmLevel)
          Initializes all fields to the given values
 
Method Summary
 java.lang.String getColumnNames()
          Returns a list of column names for this event.
 java.lang.String getFieldNames()
          Returns a list of SQL field names
 java.lang.String getFieldValues()
          Returns a list of SQL values
 java.lang.String toString()
          Returns a string representation of this object
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserPresenceEvent

public UserPresenceEvent(java.lang.String eventName,
                         long eventGenerationTime,
                         ajanta.naming.URN agentURN,
                         java.lang.String user,
                         java.lang.String host,
                         int alertLevel,
                         int alarmLevel)
Initializes all fields to the given values

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
user - The user whose presence was detected
host - The host the user was detected on
alertLevel - The alert level for this event
alarmLevel - The alarm level for this event
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object

Overrides:
toString in class Event
Returns:
A string containing a representation of this object

getColumnNames

public java.lang.String getColumnNames()
Returns a list of column names for this event. For use in SQL statments

Overrides:
getColumnNames in class Event
Returns:
A comma separated list of SQL column names and data types

getFieldNames

public java.lang.String getFieldNames()
Returns a list of SQL field names

Overrides:
getFieldNames in class Event
Returns:
A comma separated list of SQL field names

getFieldValues

public java.lang.String getFieldValues()
Returns a list of SQL values

Overrides:
getFieldValues in class Event
Returns:
A comma separated list of values for this event