org.jboss.jmx.adaptor.snmp.agent
Class SnmpVarBindFactory
java.lang.Object
org.jboss.jmx.adaptor.snmp.agent.SnmpVarBindFactory
- public class SnmpVarBindFactory
- extends java.lang.Object
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.
Constructor Summary |
SnmpVarBindFactory()
CTOR - Initialises the factory with the known handled types and maker
instances |
Method Summary |
SnmpVarBind |
make(java.lang.String oid,
java.lang.Object value)
The factory method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnmpVarBindFactory
public SnmpVarBindFactory()
- CTOR - Initialises the factory with the known handled types and maker
instances
make
public SnmpVarBind make(java.lang.String oid,
java.lang.Object value)
throws MappingFailedException (src)
- 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.
- Throws:
MappingFailedException (src)