com.adventnet.snmp.snmp2.agent
Interface VarBindRequestListener

All Known Implementing Classes:
SimpleRequestHandler, SnmpAgentDataHandler, SnmpProxy

public interface VarBindRequestListener
extends AgentEventListener

This interface is implemented by the agent to process GET/GET-NEXT/SET/GET-BULK commands which are received from the remote.

It gets VarBindRequestEvent as input which contains varbind list. After the processing has been done the result get backs to PduRequesHandler.

See Also:
PduRequestHandler, VarBindRequestEvent

Method Summary
 void getNextRequest(VarBindRequestEvent pe, AgentResource agentSource)
          The getNextRequest method to implement for the getNext command.
 void getRequest(VarBindRequestEvent pe)
          The getRequest method to implement for the get command.
 void setRequest(VarBindRequestEvent pe)
          The setRequest method to implement for the set command.
 

Method Detail

getRequest

public void getRequest(VarBindRequestEvent pe)
                throws AgentSnmpException
The getRequest method to implement for the get command. It process all the varbinds received from the sender.
Parameters:
pe - containing the varbindList and information about sender.
Throws:
AgentSnmpException - with the index of the varbind which has failed in AgentSnmpException

getNextRequest

public void getNextRequest(VarBindRequestEvent pe,
                           AgentResource agentSource)
                    throws AgentSnmpException
The getNextRequest method to implement for the getNext command. It process all the varbinds received from the sender.
Parameters:
pe - containing the varbindList and information about the sender.
agentSource - the AgentResource created for this request.
Throws:
AgentSnmpException - with the index of the varbind which has failed in AgentSnmpException

setRequest

public void setRequest(VarBindRequestEvent pe)
                throws AgentSnmpException
The setRequest method to implement for the set command. It process all the varbinds received from the sender.
Parameters:
pe - containing the varbindList and information about the sender.
Throws:
AgentSnmpException - with the index of the varbind which has failed in AgentSnmpException