com.adventnet.utils.agent
Class AgentEventObject

java.lang.Object
  extended by com.adventnet.utils.agent.AgentEventObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChangeEvent, RegistrationEvent, SnmpPduRequestEvent, StatusEvent, TrapRequestEvent, VarBindRequestEvent

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

The root class from which all event state objects shall be derived.

All Events are constructed with a reference to the object, the "source", that is logically deemed to be the object upon which the Event in question initially occurred upon.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object source
          The object on which the Event initially occurred.
 
Constructor Summary
AgentEventObject(java.lang.Object source)
          Constructs a prototypical Event.
 
Method Summary
 java.lang.Object getSource()
          The object on which the Event initially occurred.
 java.lang.String toString()
          Returns a String representation of this AgentEventObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected transient java.lang.Object source
The object on which the Event initially occurred.

Constructor Detail

AgentEventObject

public AgentEventObject(java.lang.Object source)
Constructs a prototypical Event.

Parameters:
source - The object on which the Event initially occurred.
Method Detail

getSource

public java.lang.Object getSource()
The object on which the Event initially occurred.

Returns:
The object on which the Event initially occurred.

toString

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

Overrides:
toString in class java.lang.Object
Returns:
A a String representation of this AgentEventObject.