net.sf.snmpadaptor4j.api.opennms
Class OpennmsSupport

java.lang.Object
  extended by net.sf.snmpadaptor4j.api.opennms.OpennmsSupport
Direct Known Subclasses:
OpennmsSnmpDaemon, OpennmsSnmpTrapSender

public abstract class OpennmsSupport
extends Object

Support class for joesnmp API.

Author:
Jean-Philippe MINETTI

Field Summary
protected  org.apache.log4j.Logger logger
          Logger.
 
Constructor Summary
protected OpennmsSupport()
          Hidden constructor.
 
Method Summary
protected static Object newJmxValue(Class<?> jmxDataType, SnmpDataType snmpDataType, org.opennms.protocols.snmp.SnmpSyntax newValue)
          Creates and returns a new JMX object from a SnmpSyntax.
protected static org.opennms.protocols.snmp.SnmpSyntax newSnmpValue(SnmpDataType snmpDataType, Object value)
          Creates and returns a new SnmpSyntax.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.log4j.Logger logger
Logger.

Constructor Detail

OpennmsSupport

protected OpennmsSupport()
Hidden constructor.

Method Detail

newSnmpValue

protected static final org.opennms.protocols.snmp.SnmpSyntax newSnmpValue(SnmpDataType snmpDataType,
                                                                          Object value)
                                                                   throws Exception
Creates and returns a new SnmpSyntax.

Parameters:
snmpDataType - SNMP data type of value.
value - Value.
Returns:
New SnmpSyntax.
Throws:
Exception - Exception if an error has occurred.

newJmxValue

protected static Object newJmxValue(Class<?> jmxDataType,
                                    SnmpDataType snmpDataType,
                                    org.opennms.protocols.snmp.SnmpSyntax newValue)
                             throws Exception
Creates and returns a new JMX object from a SnmpSyntax.

Parameters:
jmxDataType - JMX data type of value.
snmpDataType - SNMP data type of value.
newValue - New value encapsulated to an object SnmpSyntax.
Throws:
Exception - Exception if an error has occurred.


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.