|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.utils.agent.AgentEventObject
|
+--com.adventnet.snmp.snmp2.agent.VarBindRequestEvent
The VarBindRequestEvent gives information about the request VarBind received.
VarBindRequestEvent is sent to all listeners interested in a particular node. The VarBindRequestEvent contains varbinds received for the targets interested in the nodes
SnmpAgent,
SnmpVar,
SnmpOID,
SnmpVarBind, Serialized Form| Field Summary | |
(package private) java.lang.String |
agentAddress
|
(package private) int |
agentVersion
|
(package private) byte |
command
|
(package private) byte[] |
data
|
(package private) java.util.Vector |
failedList
|
(package private) java.util.Vector |
failedVarBindList
|
(package private) java.util.Vector |
globalIndexList
|
(package private) VarBindRequestListenerHolder |
holder
The holder which holds info about the listener |
(package private) int[] |
holderKey
|
(package private) java.util.Vector |
leafNodes
|
(package private) java.util.Vector |
originalOIDList
|
(package private) SnmpPDU |
pdu
|
(package private) PropertyRegistrationListener |
propListener
|
(package private) AgentNode |
registeredNode
|
(package private) java.util.Vector |
varbindList
|
| Fields inherited from class com.adventnet.utils.agent.AgentEventObject |
source |
| Constructor Summary | |
VarBindRequestEvent(java.lang.Object varBindRequestEventSource,
PropertyRegistrationListener propListener,
SnmpPDU pdu)
Constructor for VarBindRequestEvent. |
|
VarBindRequestEvent(java.lang.Object varBindRequestEventSource,
SnmpPDU pdu)
Constructor for VarBindRequestEvent. |
|
| Method Summary | |
(package private) java.lang.String |
getAgentAddress()
|
int |
getAgentVersion()
Gets the Snmp version of the received SnmpPDU. |
byte |
getCommand()
Gets the command type of the received snmpPDU |
java.lang.String |
getCommunity()
Gets the community of the SnmpPDU sender. |
(package private) byte[] |
getData()
|
java.util.Vector |
getFailedList()
Getter for the Vector containing all the Failed varbinds |
(package private) java.util.Vector |
getGlobalIndexList()
|
(package private) int[] |
getHolderKey()
|
java.util.Vector |
getLeafNodes()
Gets all leaf nodes of the received varbind. |
int |
getNextSubId(int pos)
Gets the next sub OID of the received varbind. |
java.util.Vector |
getOriginalOIDList()
Getter for the Original OID list vector |
PropertyRegistrationListener |
getPropertyRegistrationListener()
gets the PropertyRegistrationListener from which agent properties can be derived. |
AgentNode |
getRegisteredNode()
Gets the registered node of a particular listener. |
java.lang.String |
getRemoteHost()
Gets the host name of the snmpPDU sender |
int |
getRemotePort()
Gets the port number on which the SnmpPDU is received. |
int |
getReqId()
Gets the SnmpPDU request Id. |
SnmpPDU |
getSnmpPDU()
Returns the PDU originated with this varbindrequestevent |
java.util.Vector |
getVarBindList()
Get the varbinds. |
int |
getVersion()
Gets the Snmp version of the received SnmpPDU. |
boolean |
isRemoveEntry()
Signifies the purpose of deleting the Table row created in a MultiVar request when any other VarBinds fail. |
boolean |
isRollback()
Signifies whether this event is generated for the purpose of ROLLBACK. |
void |
setAgentVersion(int snmpVersion)
Setter for the Snmp Version of this Event |
void |
setAgentVersion(java.lang.String snmpVersion)
Setter for the Snmp Version of this Event |
(package private) void |
setData(byte[] data)
|
void |
setFailedList(java.util.Vector list)
Setter for the Vector containing all the Failed varbinds |
void |
setFailedVarBindList(java.util.Vector list)
Set all varbinds which have failed API Users need to set this Vector when a varbind/s fail |
(package private) void |
setHolderKey(int[] holderKey)
|
(package private) void |
setRemoveEntry(boolean flag)
|
(package private) void |
setRollback(boolean rollback)
|
void |
setVarBindList(java.util.Vector varbindList)
|
| Methods inherited from class com.adventnet.utils.agent.AgentEventObject |
getSource,
toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
SnmpPDU pdu
AgentNode registeredNode
java.util.Vector varbindList
PropertyRegistrationListener propListener
VarBindRequestListenerHolder holder
java.util.Vector failedVarBindList
byte command
int agentVersion
java.util.Vector leafNodes
java.util.Vector failedList
byte[] data
java.util.Vector globalIndexList
java.util.Vector originalOIDList
int[] holderKey
java.lang.String agentAddress
| Constructor Detail |
public VarBindRequestEvent(java.lang.Object varBindRequestEventSource,
SnmpPDU pdu)
varBindRequestEventSource - source of the varbind listener.pdu - the received SnmpPDU.
public VarBindRequestEvent(java.lang.Object varBindRequestEventSource,
PropertyRegistrationListener propListener,
SnmpPDU pdu)
varBindRequestEventSource - source of the varbind listener.propListener - the listener from which agent properties can be derived.pdu - the received SnmpPDU.| Method Detail |
public AgentNode getRegisteredNode()
public PropertyRegistrationListener getPropertyRegistrationListener()
The - PropertyRegistrationListener instancepublic void setFailedVarBindList(java.util.Vector list)
list - the array of failed vabindsVarbindAndFailurepublic java.util.Vector getVarBindList()
public java.lang.String getCommunity()
public java.lang.String getRemoteHost()
public byte getCommand()
SnmpAPIpublic int getRemotePort()
public int getVersion()
public void setAgentVersion(java.lang.String snmpVersion)
snmpVersion - the Snmp Version String to be set (v1, v2c, v2 or v3)public void setAgentVersion(int snmpVersion)
snmpVersion - the Snmp Version int to be set(0,1,3)public int getAgentVersion()
public int getReqId()
public java.util.Vector getLeafNodes()
public void setVarBindList(java.util.Vector varbindList)
public int getNextSubId(int pos)
pos - The index of the subId list.public void setFailedList(java.util.Vector list)
list - Vector of failed varbinds.public java.util.Vector getFailedList()
byte[] getData()
void setData(byte[] data)
java.util.Vector getGlobalIndexList()
public java.util.Vector getOriginalOIDList()
void setHolderKey(int[] holderKey)
int[] getHolderKey()
java.lang.String getAgentAddress()
public boolean isRollback()
void setRollback(boolean rollback)
public boolean isRemoveEntry()
void setRemoveEntry(boolean flag)
public SnmpPDU getSnmpPDU()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||