当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 varia API Documentation 英文版文档
SnmpVarBindFactory (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档
org.jboss.jmx.adaptor.snmp.agent
Class SnmpVarBindFactory
java.lang.Object
org.jboss.jmx.adaptor.snmp.agent.SnmpVarBindFactory
- public class SnmpVarBindFactory
- extends 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.
- Version:
- $Revision: 1.2.6.1 $
- Author:
- Spyros Pollatos, Dimitris Andreadis
Constructor Summary |
SnmpVarBindFactory()
CTOR - Initialises the factory with the known handled types and maker
instances |
Method Summary |
org.opennms.protocols.snmp.SnmpVarBind |
make(String oid,
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 org.opennms.protocols.snmp.SnmpVarBind make(String oid,
Object value)
throws MappingFailedException
- 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
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.