org.opennms.netmgt.snmp.snmp4j
Class Snmp4JValueFactory

java.lang.Object
  extended by org.opennms.netmgt.snmp.snmp4j.Snmp4JValueFactory
All Implemented Interfaces:
SnmpValueFactory

public class Snmp4JValueFactory
extends Object
implements SnmpValueFactory


Constructor Summary
Snmp4JValueFactory()
           
 
Method Summary
 SnmpValue getCounter32(long val)
           
 SnmpValue getCounter64(BigInteger bigInt)
           
 SnmpValue getGauge32(long val)
           
 SnmpValue getInt32(int val)
           
 SnmpValue getIpAddress(InetAddress val)
           
 SnmpValue getNull()
           
 SnmpValue getObjectId(SnmpObjId objId)
           
 SnmpValue getOctetString(byte[] bytes)
           
 SnmpValue getOpaque(byte[] bs)
           
 SnmpValue getTimeTicks(long val)
           
 SnmpValue getValue(int type, byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Snmp4JValueFactory

public Snmp4JValueFactory()
Method Detail

getOctetString

public SnmpValue getOctetString(byte[] bytes)
Specified by:
getOctetString in interface SnmpValueFactory

getCounter32

public SnmpValue getCounter32(long val)
Specified by:
getCounter32 in interface SnmpValueFactory

getCounter64

public SnmpValue getCounter64(BigInteger bigInt)
Specified by:
getCounter64 in interface SnmpValueFactory

getGauge32

public SnmpValue getGauge32(long val)
Specified by:
getGauge32 in interface SnmpValueFactory

getInt32

public SnmpValue getInt32(int val)
Specified by:
getInt32 in interface SnmpValueFactory

getIpAddress

public SnmpValue getIpAddress(InetAddress val)
Specified by:
getIpAddress in interface SnmpValueFactory

getObjectId

public SnmpValue getObjectId(SnmpObjId objId)
Specified by:
getObjectId in interface SnmpValueFactory

getTimeTicks

public SnmpValue getTimeTicks(long val)
Specified by:
getTimeTicks in interface SnmpValueFactory

getNull

public SnmpValue getNull()
Specified by:
getNull in interface SnmpValueFactory

getValue

public SnmpValue getValue(int type,
                          byte[] bytes)
Specified by:
getValue in interface SnmpValueFactory

getOpaque

public SnmpValue getOpaque(byte[] bs)
Specified by:
getOpaque in interface SnmpValueFactory


Copyright © 2009. All Rights Reserved.