|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.protocols.snmp.SnmpRequest
Implements a way to track outstanding SNMP pdu request. The object tracks the pdu, it's sending parameters, the number of times send, and the last time sent.
The SnmpRequest implements the Runnable interface and its run method is invoked by the corresponding SnmpTimer when the request effectively expires. The member m_expires refers the the expiretion of the request and pdu, not to the failed response.
Field Summary | |
(package private) boolean |
m_expired
When set the request as a whole has expired and should no longer be process by any methods. |
(package private) SnmpHandler |
m_handler
The SnmpHandler to invoke for this request |
(package private) SnmpSyntax |
m_pdu
The pdu transemited to the SnmpPeer. |
(package private) SnmpSession |
m_session
The session that created this request |
(package private) int |
m_timesSent
The number of times this request has been transmitted. |
Constructor Summary | |
(package private) |
SnmpRequest(SnmpSession session,
SnmpPduPacket pdu,
SnmpHandler handler)
Used to create an SnmpRequest object. |
(package private) |
SnmpRequest(SnmpSession session,
SnmpPduTrap pdu,
SnmpHandler handler)
Used to create an SnmpRequest object. |
Method Summary | |
void |
run()
Used to process the timeout of an SnmpRequest. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
SnmpSession m_session
SnmpSyntax m_pdu
SnmpHandler m_handler
int m_timesSent
boolean m_expired
Constructor Detail |
SnmpRequest(SnmpSession session, SnmpPduPacket pdu, SnmpHandler handler)
session
- The sending sessionpdu
- The pdu to send to the remotehandler
- The handler to invoke!SnmpRequest(SnmpSession session, SnmpPduTrap pdu, SnmpHandler handler)
session
- The sending sessionpdu
- The pdu to send to the remotehandler
- The handler to invoke!Method Detail |
public void run()
run
in interface java.lang.Runnable
SnmpHandler
,
SnmpPduRequest
,
SnmpSession
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |