com.adventnet.snmp.snmp2.agent
Class ChangeEvent

java.lang.Object
  extended by com.adventnet.utils.agent.AgentEventObject
      extended by com.adventnet.snmp.snmp2.agent.ChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ChangeEvent
extends AgentEventObject

This class is used to give control to the user class from the xxxRequestHandler if a request is made.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.adventnet.utils.agent.AgentEventObject
source
 
Constructor Summary
ChangeEvent(java.lang.Object changeEventSource)
          Constructor for the ChangeEvent
ChangeEvent(java.lang.Object changeEventSource, byte reqType, int[] oidArray, java.lang.Object value)
          Constructor for Change Event.
ChangeEvent(java.lang.Object changeEventSource, byte reqType, int subId, java.lang.Object value, int[] oidArray)
          Constructor for the ChangeEvent.
 
Method Summary
 int[] getOIDArray()
          Getter for the OID.
 byte getRequestType()
          Getter of the request type.
 int getSubId()
          Getter of the subId.
 java.lang.Object getValue()
          Getter of the Object value.
 void setOIDArray(int[] oidArray)
          Setter for the OID.
 void setRequestType(byte reqType)
          Setter for the request rype.
 void setSubId(int subId)
          Setter for the subId.
 void setValue(java.lang.Object value)
          Setter for the Object value.
 
Methods inherited from class com.adventnet.utils.agent.AgentEventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeEvent

public ChangeEvent(java.lang.Object changeEventSource,
                   byte reqType,
                   int[] oidArray,
                   java.lang.Object value)
Constructor for Change Event.

Parameters:
changeEventSource - The Object source for the event.
reqType - The chnage Event type Required.
oidArray - The integer array representing the OID.
value - The Object value.

ChangeEvent

public ChangeEvent(java.lang.Object changeEventSource,
                   byte reqType,
                   int subId,
                   java.lang.Object value,
                   int[] oidArray)
Constructor for the ChangeEvent.

Parameters:
ChangeEventSource - the originator of this event.
reqType - The Change event type required.
subId - The Sub ID value.
value - The Object value.

ChangeEvent

public ChangeEvent(java.lang.Object changeEventSource)
Constructor for the ChangeEvent

Parameters:
changeEventSource - the originator of this event
Method Detail

getRequestType

public byte getRequestType()
Getter of the request type.

Returns:
request type

setRequestType

public void setRequestType(byte reqType)
Setter for the request rype.

Parameters:
reqType - Byte value for the requested type.

getSubId

public int getSubId()
Getter of the subId.

Returns:
The subId value requested.

setSubId

public void setSubId(int subId)
Setter for the subId.

Parameters:
subId - The Sub Id value to be set.

getValue

public java.lang.Object getValue()
Getter of the Object value.

Returns:
The Object value requested.

setValue

public void setValue(java.lang.Object value)
Setter for the Object value.

Parameters:
value - The Object Value to be set.

getOIDArray

public int[] getOIDArray()
Getter for the OID.

Returns:
The Integer array representing the OID,

setOIDArray

public void setOIDArray(int[] oidArray)
Setter for the OID.

Parameters:
oidArray - The Integer Array representing the OID to be set.