| java.lang.Object org.jboss.jmx.adaptor.snmp.agent.RequestHandlerSupport org.jboss.jmx.adaptor.snmp.agent.RequestHandlerImpl
Method Summary | |
public void | SnmpAgentSessionError(SnmpAgentSession session, int error, Object ref)
This method is invoked if an error occurs in the session. | public void | initialize(String resourceName, MBeanServer server, Logger log, Clock uptime) | public void | reconfigure(String resName) | public SnmpPduRequest | snmpReceivedGet(SnmpPduPacket pdu, boolean getNext)
This method is defined to handle SNMP Get requests that are received by
the session. | public void | snmpReceivedPdu(SnmpAgentSession session, InetAddress manager, int port, SnmpOctetString community, SnmpPduPacket pdu)
This method is defined to handle SNMP requests that are received by the
session. | public SnmpPduRequest | snmpReceivedSet(SnmpPduPacket pdu)
This method is defined to handle SNMP Set requests that are received by
the session. |
RequestHandlerImpl | public RequestHandlerImpl()(Code) | | Default CTOR
|
SnmpAgentSessionError | public void SnmpAgentSessionError(SnmpAgentSession session, int error, Object ref)(Code) | |
This method is invoked if an error occurs in the session. The error code
that represents the failure will be passed in the second parameter,
'error'. The error codes can be found in the class SnmpAgentSession
class.
If a particular PDU is part of the error condition it will be passed in
the third parameter, 'pdu'. The pdu will be of the type SnmpPduRequest or
SnmpPduTrap object. The handler should use the "instanceof" operator to
determine which type the object is. Also, the object may be null if the
error condition is not associated with a particular PDU.
Parameters: session - The SNMP Session Parameters: error - The error condition value. Parameters: ref - The PDU reference, or potentially null. It may also be anexception. |
initialize | public void initialize(String resourceName, MBeanServer server, Logger log, Clock uptime) throws Exception(Code) | | Initialize
Parameters: resourceName - A file containing get/set mappings Parameters: server - Our MBean-Server Parameters: log - The logger we use Parameters: uptime - The uptime of the snmp-agent subsystem. |
reconfigure | public void reconfigure(String resName) throws Exception(Code) | | Reconfigures the RequestHandler
|
snmpReceivedGet | public SnmpPduRequest snmpReceivedGet(SnmpPduPacket pdu, boolean getNext)(Code) | |
This method is defined to handle SNMP Get requests that are received by
the session. The request has already been validated by the system. This
routine will build a response and pass it back to the caller.
Parameters: pdu - The SNMP pdu Parameters: getNext - The agent is requesting the lexically NEXT item after eachitem in the pdu. SnmpPduRequest filled in with the proper response, or null ifcannot process NOTE: this might be changed to throw an exception. |
snmpReceivedPdu | public void snmpReceivedPdu(SnmpAgentSession session, InetAddress manager, int port, SnmpOctetString community, SnmpPduPacket pdu)(Code) | |
This method is defined to handle SNMP requests that are received by the
session. The parameters allow the handler to determine the host, port,
and community string of the received PDU
Parameters: session - The SNMP session Parameters: manager - The remote sender Parameters: port - The remote senders port Parameters: community - The community string Parameters: pdu - The SNMP pdu |
snmpReceivedSet | public SnmpPduRequest snmpReceivedSet(SnmpPduPacket pdu)(Code) | |
This method is defined to handle SNMP Set requests that are received by
the session. The request has already been validated by the system. This
routine will build a response and pass it back to the caller.
Parameters: pdu - The SNMP pdu SnmpPduRequest filled in with the proper response, or null ifcannot process NOTE: this might be changed to throw an exception. |
Methods inherited from org.jboss.jmx.adaptor.snmp.agent.RequestHandlerSupport | public void SnmpAgentSessionError(SnmpAgentSession session, int error, Object ref)(Code)(Java Doc) public void initialize(String resourceName, MBeanServer server, Logger log, Clock uptime) throws Exception(Code)(Java Doc) public SnmpPduRequest snmpReceivedGet(SnmpPduPacket pdu, boolean getNext)(Code)(Java Doc) public void snmpReceivedPdu(SnmpAgentSession session, InetAddress manager, int port, SnmpOctetString community, SnmpPduPacket pdu)(Code)(Java Doc) public SnmpPduRequest snmpReceivedSet(SnmpPduPacket pdu)(Code)(Java Doc)
|
|
|