| java.lang.Object org.jboss.jmx.adaptor.snmp.agent.SnmpVarBindFactory
SnmpVarBindFactory | public class SnmpVarBindFactory (Code) | | SnmpVarBindFactory implements the infrastructure required to
generate SNMP variable bindings from generic Object instances.
For each handled type (integer, string, e.t.c.) a corresponding maker class
is present that "knows" how to make and populate the coresponding variable
binding (SnmpInt32, SnmpOctetString). The mapping between types and makers
is held in a hash map for optimised performance.
version: $Revision: 23902 $ author: Spyros Pollatos author: Dimitris Andreadis |
Inner Class :interface Maker | |
Inner Class :class SnmpInt32Maker implements Maker | |
Inner Class :class SnmpCounter64Maker implements Maker | |
Inner Class :class SnmpOctetStringMaker implements Maker | |
Inner Class :class SnmpDateMaker implements Maker | |
Inner Class :class SnmpObjectMaker implements Maker | |
Method Summary | |
public SnmpVarBind | make(String oid, Object value) The factory method. |
SnmpVarBindFactory | public SnmpVarBindFactory()(Code) | | CTOR - Initialises the factory with the known handled types and maker
instances
|
make | public SnmpVarBind make(String oid, Object value) throws MappingFailedException(Code) | | The factory method. A lookup is performed based on the type of the
provided value, as this is returned by "getClass().getName()". If a
match is found the call is delegated to the returned maker.
|
|
|