|
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.SnmpPduPacket
org.opennms.protocols.snmp.SnmpPduBulk
This class defines the SNMPv2 GetBulk request sent from the management platform to the agent. The Get Bulk request is designed to minimize the number of message exchanges to get a large amount of information. The Get Bulk works in the same way as multiple Get Next requests would work. It returns a set of lexicograpical successors that are selected. For more information on the use of a GetBulk request see [Stallings99] page 378-383.
Field Summary |
Fields inherited from class org.opennms.protocols.snmp.SnmpPduPacket |
ErrAuthorizationError, ErrBadValue, ErrCommitFailed, ErrGenError, ErrInconsistentName, ErrInconsistentValue, ErrNoAccess, ErrNoCreation, ErrNoError, ErrNoSuchName, ErrNotWritable, ErrReadOnly, ErrResourceUnavailable, ErrTooBig, ErrUndoFailed, ErrWrongEncoding, ErrWrongLength, ErrWrongType, ErrWrongValue, GET, GETBULK, GETNEXT, INFORM, m_errIndex, m_errStatus, REPORT, RESPONSE, SET, V2TRAP |
Constructor Summary | |
SnmpPduBulk()
Constructs a default get bulk request. |
|
SnmpPduBulk(int nonRepeaters,
int maxRepititions,
SnmpVarBind[] vars)
Constructs a get bulk request with the specified variables, non-repeaters, and maximum repititions. |
|
SnmpPduBulk(SnmpPduBulk second)
Constructs a duplicate get bulk request that is an identical copy of the passed object. |
Method Summary | |
java.lang.Object |
clone()
Creates a new duplicate object of self that shares no references with the original PDU. |
SnmpSyntax |
duplicate()
Creates a new duplicate object of self that shares no references with the original PDU. |
int |
getMaxRepititions()
Used to retreive the number of reptitions to get for the repeating variables. |
int |
getNonRepeaters()
Returns the number of non-repeating elements |
void |
setMaxRepititions(int maxreps)
Used to set the number of maximum repititions to be collected by the PDU. |
void |
setNonRepeaters(int nonreps)
Sets the number of non-repeating elements in this PDU. |
Methods inherited from class org.opennms.protocols.snmp.SnmpPduPacket |
addVarBind, addVarBindAt, decodeASN, encodeASN, getCommand, getLength, getPeer, getRequestId, getVarBindAt, nextSequence, removeVarBindAt, setCommand, setPeer, setRequestId, setVarBindAt, toVarBindArray, typeId |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SnmpPduBulk()
public SnmpPduBulk(SnmpPduBulk second)
second
- The object to copy.public SnmpPduBulk(int nonRepeaters, int maxRepititions, SnmpVarBind[] vars)
nonRepeaters
- The number of non-repeating variablesmaxRepititions
- The number of "repeating" variables to getvars
- The SNMP variablesMethod Detail |
public int getNonRepeaters()
public void setNonRepeaters(int nonreps)
nonreps
- The number of non-repeaterspublic int getMaxRepititions()
public void setMaxRepititions(int maxreps)
maxreps
- The maximum number of repititionspublic SnmpSyntax duplicate()
duplicate
in interface SnmpSyntax
duplicate
in class SnmpPduPacket
public java.lang.Object clone()
clone
in class SnmpPduPacket
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |