public class MockSnmpValueFactory extends Object implements SnmpValueFactory
| Constructor and Description |
|---|
MockSnmpValueFactory() |
| Modifier and Type | Method and Description |
|---|---|
SnmpValue |
getCounter32(long val) |
SnmpValue |
getCounter64(BigInteger val) |
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) |
public SnmpValue getOctetString(byte[] bytes)
getOctetString in interface SnmpValueFactorypublic SnmpValue getCounter32(long val)
getCounter32 in interface SnmpValueFactorypublic SnmpValue getCounter64(BigInteger val)
getCounter64 in interface SnmpValueFactorypublic SnmpValue getGauge32(long val)
getGauge32 in interface SnmpValueFactorypublic SnmpValue getInt32(int val)
getInt32 in interface SnmpValueFactorypublic SnmpValue getIpAddress(InetAddress val)
getIpAddress in interface SnmpValueFactorypublic SnmpValue getObjectId(SnmpObjId objId)
getObjectId in interface SnmpValueFactorypublic SnmpValue getTimeTicks(long val)
getTimeTicks in interface SnmpValueFactorypublic SnmpValue getValue(int type, byte[] bytes)
getValue in interface SnmpValueFactorypublic SnmpValue getNull()
getNull in interface SnmpValueFactorypublic SnmpValue getOpaque(byte[] bs)
getOpaque in interface SnmpValueFactoryCopyright © 2022. All rights reserved.