Methods Summary |
---|
public int | getErrorIndex()Error index getter. Remember that SNMP indices start from 1.
Thus the corresponding SnmpVarBind is
varBindList[errorIndex-1] . return errorIndex;
|
public int | getErrorStatus()Error status getter. Statuses are defined in
{@link com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions}. return errorStatus;
|
public SnmpPdu | getResponsePdu()Generates the pdu to use for response.
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 void | setErrorIndex(int i)Error index setter. Remember that SNMP indices start from 1.
Thus the corresponding SnmpVarBind is
varBindList[errorIndex-1] .
errorIndex = i;
|
public void | setErrorStatus(int s)Error status setter. Statuses are defined in
{@link com.sun.jmx.snmp.SnmpDefinitions SnmpDefinitions}.
errorStatus = s;
|