public class SnmpPduBulk extends 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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addVarBind, addVarBindAt, decodeASN, encodeASN, getCommand, getLength, getPeer, getRequestId, getVarBindAt, nextSequence, removeVarBindAt, setCommand, setPeer, setRequestId, setVarBindAt, toVarBindArray, typeIdpublic 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 variablespublic 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 SnmpSyntaxduplicate in class SnmpPduPacketpublic Object clone()
clone in class SnmpPduPacketCopyright © 2022. All rights reserved.