ajanta.logger
Class Event

java.lang.Object
  |
  +--ajanta.logger.Event
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgentServerEvent

public class Event
extends java.lang.Object
implements java.io.Serializable

Event is a generic class representing all events taking place in the the Agentserver.

See Also:
Serialized Form

Constructor Summary
Event(java.lang.String eventName, long time)
          Constructor for the Event class
 
Method Summary
 java.net.InetAddress getEventLocation()
          Returns the location of the host where the event took place
 java.lang.String getName()
          Returns the name of the event
 long getTime()
          Returns the time when the event took place
 java.lang.String toString()
          Returns the string representation of the event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event(java.lang.String eventName,
             long time)
Constructor for the Event class

Parameters:
eventName - Name of the event
time - of event generation
Method Detail

getName

public java.lang.String getName()
Returns the name of the event


getEventLocation

public java.net.InetAddress getEventLocation()
Returns the location of the host where the event took place


getTime

public long getTime()
Returns the time when the event took place


toString

public java.lang.String toString()
Returns the string representation of the event

Overrides:
toString in class java.lang.Object