org.jboss.jmx.adaptor.snmp.agent
Interface RequestHandler

All Superinterfaces:
SnmpAgentRequestHandler
All Known Implementing Classes:
RequestHandlerImpl, RequestHandlerSupport

public interface RequestHandler
extends SnmpAgentRequestHandler

Interface that must be implemented by classes that provide agent get/set functionality

Version:
$Revision: 110455 $
Author:
Dimitris Andreadis

Method Summary
 void addAttributeMappings(java.util.List<ManagedBean> mappings)
           
 org.snmp4j.smi.Variable getValueFor(org.snmp4j.smi.OID oid)
           
 void initialize(java.lang.String resourceName, javax.management.MBeanServer server, org.jboss.logging.Logger loggger, Clock uptime)
          Perform initialization, possibly by parsing mapping information from resourceName
 void removeAttributeMappings(java.util.List<ManagedBean> mappings)
           
 
Methods inherited from interface org.jboss.jmx.adaptor.snmp.agent.SnmpAgentRequestHandler
snmpReceivedGet, snmpReceivedGetBulk, snmpReceivedPdu, snmpReceivedSet
 

Method Detail

initialize

void initialize(java.lang.String resourceName,
                javax.management.MBeanServer server,
                org.jboss.logging.Logger loggger,
                Clock uptime)
                throws java.lang.Exception
Perform initialization, possibly by parsing mapping information from resourceName

Parameters:
resourceName - file containing mappinginfo
server - the mbean server to forward mapped get/set requests
logger - the shared logger to use
uptime - the snmp agent uptime
Throws:
java.lang.Exception - in case of initialization problem

addAttributeMappings

void addAttributeMappings(java.util.List<ManagedBean> mappings)

removeAttributeMappings

void removeAttributeMappings(java.util.List<ManagedBean> mappings)

getValueFor

org.snmp4j.smi.Variable getValueFor(org.snmp4j.smi.OID oid)
                                    throws NoSuchInstanceException,
                                           VariableTypeException
Throws:
NoSuchInstanceException
VariableTypeException


Copyright © 2011. All Rights Reserved.