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

SnmpScopedPduRequest

public class SnmpScopedPduRequest extends SnmpScopedPduPacket implements SnmpPduRequestType
Is used to represent get, get-next, set, response SNMP V3 scoped PDUs.

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

since
1.5

Fields Summary
int
errorStatus
int
errorIndex
Constructors Summary
Methods Summary
public intgetErrorIndex()
Error index getter. Remember that SNMP indices start from 1. Thus the corresponding SnmpVarBind is varBindList[errorIndex-1].

return
Error index.

 return errorIndex; 
public intgetErrorStatus()
Error status getter. Statuses are defined in {@link com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions}.

return
Error status.

 return errorStatus; 
public SnmpPdugetResponsePdu()
Generates the pdu to use for response.

return
Response pdu.

 	SnmpScopedPduRequest result = new SnmpScopedPduRequest();
	result.address = address ;
	result.port = port ;
	result.version = version ;
 	result.requestId = requestId;
	result.msgId = msgId;
 	result.msgMaxSize = msgMaxSize;
 	result.msgFlags = msgFlags;
 	result.msgSecurityModel = msgSecurityModel;
 	result.contextEngineId = contextEngineId;
 	result.contextName = contextName;
 	result.securityParameters = securityParameters;
	result.type = pduGetResponsePdu ;
	result.errorStatus = SnmpDefinitions.snmpRspNoError ;
	result.errorIndex = 0 ;
 	return result;
    
public voidsetErrorIndex(int i)
Error index setter. Remember that SNMP indices start from 1. Thus the corresponding SnmpVarBind is varBindList[errorIndex-1].

param
i Error index.

    
                              
        
	errorIndex = i;
    
public voidsetErrorStatus(int s)
Error status setter. Statuses are defined in {@link com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions}.

param
s Error status.

	errorStatus = s;