All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----com.sun.jaw.snmp.manager.Request
|
+----com.sun.jaw.snmp.manager.SnmpRequest
|
+----com.sun.jaw.snmp.manager.SnmpPollRequest
This class inherits from SnmpRequest and adds functionality to
refire request to achieve the desired periodic polling. Any kind
of error will cause the polling operation to stop.
This is supported only for SnmpGet, SnmpGetNext
and SnmpWalk operations.
These requests can be created by the convenience methods provided
in the SnmpManagerSrvIf interface.
For SnmpGet and SnmpGetNext operations, every polling
cycle is started with the original SnmpVarbindList specified.
The walk operation is done on the response SnmpVarbindList until the
first list meets the specified condition with testOid.
These requests can be configured with options for performance reasons. For example, if the user does not want this request to participate in multilex operation, it could be disabled.
The user needs to explicitly cancel the poll operation to terminate polling operation.
public SnmpPollRequest(SnmpSession group,
SnmpPeer peer,
SnmpHandlerIf requestCB,
int cmd) throws SnmpStatusException
SnmpSession
object to create a request.
SnmpSession object for this request.
SnmpPeer object for this request.
public final synchronized String toString()
public final synchronized void setPollFrequency(int sec,
int milli)
public final synchronized void setPollFrequency(int sec)
public synchronized int getPollFrequency()
public final synchronized void startPoll(SnmpVarbindList vblst,
boolean copy,
int when) throws SnmpStatusException
public final synchronized void startPoll(SnmpVarbindList vblst,
SnmpOid key,
boolean copy,
int when) throws SnmpStatusException
All Packages Class Hierarchy This Package Previous Next Index