FileDocCategorySizeDatePackage
SnmpPduBulk.javaAPI DocJava SE 5 API2717Fri Aug 26 14:55:04 BST 2005com.sun.jmx.snmp

SnmpPduBulk

public class SnmpPduBulk extends SnmpPduPacket implements SnmpPduBulkType
Represents a get-bulk PDU as defined in RFC 1448.

You will not usually need to use this class, except if you decide to implement your own {@link com.sun.jmx.snmp.SnmpPduFactory SnmpPduFactory} object.

The SnmpPduBulk extends {@link com.sun.jmx.snmp.SnmpPduPacket SnmpPduPacket} and defines attributes specific to the get-bulk PDU (see RFC 1448).

This API is a Sun Microsystems internal API and is subject to change without notice.

Fields Summary
public int
nonRepeaters
The non-repeaters value.
public int
maxRepetitions
The max-repetitions value.
Constructors Summary
public SnmpPduBulk()
Builds a new get-bulk PDU.
type and version fields are initialized with {@link com.sun.jmx.snmp.SnmpDefinitions#pduGetBulkRequestPdu pduGetBulkRequestPdu} and {@link com.sun.jmx.snmp.SnmpDefinitions#snmpVersionTwo snmpVersionTwo}.

  	type = pduGetBulkRequestPdu ;
	version = snmpVersionTwo ;
    
Methods Summary
public intgetMaxRepetitions()
Implements the SnmpPduBulkType interface.

since
1.5

 return maxRepetitions; 
public intgetNonRepeaters()
Implements the SnmpPduBulkType interface.

since
1.5

 return nonRepeaters; 
public SnmpPdugetResponsePdu()
Implements the SnmpAckPdu interface.

since
1.5

	SnmpPduRequest result = new SnmpPduRequest();
	result.address = address;
	result.port = port;
	result.version = version;
	result.community = community;
	result.type = SnmpDefinitions.pduGetResponsePdu;
	result.requestId = requestId;
	result.errorStatus = SnmpDefinitions.snmpRspNoError;
	result.errorIndex = 0;
	
 	return result;
    
public voidsetMaxRepetitions(int i)
Implements the SnmpPduBulkType interface.

since
1.5

 
	maxRepetitions = i;
    
public voidsetNonRepeaters(int i)
Implements the SnmpPduBulkType interface.

since
1.5

	nonRepeaters = i;