Package org.opennms.netmgt.snmp.mock
Class MockSnmpValueFactory
- java.lang.Object
-
- org.opennms.netmgt.snmp.mock.MockSnmpValueFactory
-
- All Implemented Interfaces:
SnmpValueFactory
public class MockSnmpValueFactory extends Object implements SnmpValueFactory
-
-
Constructor Summary
Constructors Constructor Description MockSnmpValueFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnmpValuegetCounter32(long val)SnmpValuegetCounter64(BigInteger val)SnmpValuegetGauge32(long val)SnmpValuegetInt32(int val)SnmpValuegetIpAddress(InetAddress val)SnmpValuegetNull()SnmpValuegetObjectId(SnmpObjId objId)SnmpValuegetOctetString(byte[] bytes)SnmpValuegetOpaque(byte[] bs)SnmpValuegetTimeTicks(long val)SnmpValuegetValue(int type, byte[] bytes)
-
-
-
Method Detail
-
getOctetString
public SnmpValue getOctetString(byte[] bytes)
- Specified by:
getOctetStringin interfaceSnmpValueFactory
-
getCounter32
public SnmpValue getCounter32(long val)
- Specified by:
getCounter32in interfaceSnmpValueFactory
-
getCounter64
public SnmpValue getCounter64(BigInteger val)
- Specified by:
getCounter64in interfaceSnmpValueFactory
-
getGauge32
public SnmpValue getGauge32(long val)
- Specified by:
getGauge32in interfaceSnmpValueFactory
-
getInt32
public SnmpValue getInt32(int val)
- Specified by:
getInt32in interfaceSnmpValueFactory
-
getIpAddress
public SnmpValue getIpAddress(InetAddress val)
- Specified by:
getIpAddressin interfaceSnmpValueFactory
-
getObjectId
public SnmpValue getObjectId(SnmpObjId objId)
- Specified by:
getObjectIdin interfaceSnmpValueFactory
-
getTimeTicks
public SnmpValue getTimeTicks(long val)
- Specified by:
getTimeTicksin interfaceSnmpValueFactory
-
getValue
public SnmpValue getValue(int type, byte[] bytes)
- Specified by:
getValuein interfaceSnmpValueFactory
-
getNull
public SnmpValue getNull()
- Specified by:
getNullin interfaceSnmpValueFactory
-
getOpaque
public SnmpValue getOpaque(byte[] bs)
- Specified by:
getOpaquein interfaceSnmpValueFactory
-
-