-
- Type Parameters:
R- the SnmpSubRequest implementation class.
- All Superinterfaces:
SubRequest
- All Known Implementing Classes:
SnmpRequest.SnmpSubRequest
public interface SnmpSubRequest<R> extends SubRequest
TheSnmpSubRequestclass holds data for a SNMP sub-request.- Version:
- 1.0
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MOServerLookupEvent<R>getLookupEvent()SnmpRequestgetSnmpRequest()RequestStatusgetStatus()Gets the status object associated with this sub-request.org.snmp4j.smi.VariableBindinggetVariableBinding()Returns the variable binding associated with the sub-request.voidsetErrorStatus(int errorStatus)Sets the error status for this sub-request.voidsetLookupEvent(MOServerLookupEvent<R> lookupEvent)voidsetStatus(RequestStatus status)-
Methods inherited from interface org.snmp4j.agent.request.SubRequest
completed, getErrorStatus, getIndex, getQuery, getRequest, getScope, getTargetMO, getUndoValue, getUserObject, hasError, isComplete, repetitions, setQuery, setTargetMO, setUndoValue, setUserObject, updateNextRepetition
-
-
-
-
Method Detail
-
setStatus
void setStatus(RequestStatus status)
-
getStatus
RequestStatus getStatus()
Description copied from interface:SubRequestGets the status object associated with this sub-request.- Specified by:
getStatusin interfaceSubRequest- Returns:
- a RequestStatus instance.
-
getVariableBinding
org.snmp4j.smi.VariableBinding getVariableBinding()
Description copied from interface:SubRequestReturns the variable binding associated with the sub-request. In order to process a sub-request this variable binding needs to be modified (if not an error condition prevents that).- Specified by:
getVariableBindingin interfaceSubRequest- Returns:
- the
VariableBindingthat holds the sub-request result or operation parameter (in case of a SET request).
-
getSnmpRequest
SnmpRequest getSnmpRequest()
-
setErrorStatus
void setErrorStatus(int errorStatus)
Description copied from interface:SubRequestSets the error status for this sub-request. Calling this method is a shortcut for.SubRequest.getStatus().setErrorStatus(int errorStatus)- Specified by:
setErrorStatusin interfaceSubRequest- Parameters:
errorStatus- a SNMPv2/v3 error status.
-
setLookupEvent
void setLookupEvent(MOServerLookupEvent<R> lookupEvent)
-
getLookupEvent
MOServerLookupEvent<R> getLookupEvent()
-
-