|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--com.adventnet.snmp.snmp2.SnmpCallback
This class starts a thread which monitors if callback has to be called when a response arrives.
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY,
values |
| Constructor Summary | |
(package private) |
SnmpCallback(SnmpSession session)
Constructs an SnmpCallback object using default IP protocol. |
| Method Summary | |
(package private) void |
close()
Sets the closeCallback boolean true Wakesup all the waiting Threads |
(package private) void |
enQ(SnmpClient client,
SnmpPDU pdu,
int reqid)
When callback has to be called SnmpSession receiver queues it in the responses vector. |
(package private) void |
enQ(SnmpPDU pdu)
After extracting the reqid the PDU is handed over to this thread method by SnmpSession for further processing. |
void |
run()
The run method of the thread which checks the 'responses' vector and 'packet' vector and calls the appropriate callback. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
SnmpCallback(SnmpSession session)
| Method Detail |
void enQ(SnmpClient client,
SnmpPDU pdu,
int reqid)
client - This is the application which has
registered for handling the PDU.session - The SnmpSession instance invoking
this method.pdu - the SnmpPDU Objectreqid - the request-id of the packetSnmpClientvoid enQ(SnmpPDU pdu)
packet - The packet received.session - handle to the SnmpSession instance invoking
this method.pdu - the SnmpPDU objectSnmpSessionpublic void run()
void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||