| java.lang.Object org.jboss.jmx.adaptor.snmp.agent.RequestHandlerSupport
All known Subclasses: org.jboss.jmx.adaptor.snmp.agent.RequestHandlerImpl,
RequestHandlerSupport | public class RequestHandlerSupport implements RequestHandler(Code) | | Implement RequestHandler with simple tracing of incoming requests.
Derived classes are expected to implement actual behaviour.
author: Krishnaraj S author: Dimitris Andreadis version: $Revision: 57210 $ |
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 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. |
log | protected Logger log(Code) | | Logger object
|
resourceName | protected String resourceName(Code) | | the file name to get mapping info from
|
RequestHandlerSupport | public RequestHandlerSupport()(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 an exception. |
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 if cannot processNOTE: 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 if cannot processNOTE: this might be changed to throw an exception. |
|
|