Package | Description |
---|---|
com.hp.util.snmp |
Package for holding SNMP library.
|
com.hp.util.snmp.command |
Various SNMP command representations and related codecs.
|
Modifier and Type | Class and Description |
---|---|
class |
SnmpRequest
SNMP request message.
|
class |
SnmpResponse
SNMP response message.
|
class |
SnmpTrapRequest
SNMP trap request message.
|
Modifier and Type | Field and Description |
---|---|
static SnmpField |
SnmpField.NULL_FIELD |
Modifier and Type | Method and Description |
---|---|
SnmpField |
VarBinds.getOid(int i)
Returns the OID at the specified index or null.
|
SnmpField |
SnmpWalkTable.getOid(int r,
int c)
Use this method to access the OID at the specified row and column.
|
SnmpField |
VarBinds.getVal(int i)
Returns the value at the specified index or null.
|
SnmpField |
SnmpWalkTable.getVal(int r,
int c)
Use this method to access the value at the specified row and column.
|
SnmpField |
VarBinds.getVB(int i)
Returns the variable binding at the specified index or null.
|
SnmpField |
SnmpField.set(byte[] v)
Convenience method for OCTET_STR values.
|
SnmpField |
SnmpField.set(int v)
Convenience method for INTEGER 32-bit values (allows for negatives).
|
SnmpField |
SnmpField.set(IpAddress val)
Used to set IP_ADDRESS value.
|
SnmpField |
SnmpField.set(long v)
Convenience method for COUNTER64 values.
|
SnmpField |
SnmpField.set(SnmpFieldType type,
byte[] val)
Used to set a specific type of value.
|
SnmpField |
SnmpField.set(SnmpFieldType type,
long val)
Used to set a specific type of value.
|
SnmpField |
SnmpField.set(SnmpOid val)
Used to set OID value.
|
SnmpField |
SnmpField.set(String v)
Convenience method for OCTET_STR values.
|
SnmpField |
SnmpField.setNull()
Convenience method reseting the field to null.
|
SnmpField |
SnmpField.setType(SnmpFieldType type) |
SnmpField |
SnmpField.setU32(long v)
Convenience method for COUNTER32 values (converts to positive long).
|
Modifier and Type | Method and Description |
---|---|
void |
VarBinds.addVB(SnmpOid oid,
SnmpField value)
Add VarBind using the passed in object.
|
void |
VarBinds.addVB(String oid,
SnmpField value)
Add VarBind using the passed in object.
|
Modifier and Type | Method and Description |
---|---|
protected SnmpField |
SnmpAbstractCodec.encodePrimitive(byte[] value)
Encodes a value.
|
protected SnmpField |
SnmpAbstractCodec.encodePrimitive(int value)
Encodes a value.
|
protected SnmpField |
SnmpAbstractCodec.encodePrimitive(IpAddress value)
Encodes a value.
|
protected SnmpField |
SnmpAbstractCodec.encodePrimitive(long value)
Encodes a value.
|
protected SnmpField |
SnmpAbstractCodec.encodePrimitive(MacAddress value)
Encodes a value.
|
protected SnmpField |
SnmpAbstractCodec.encodePrimitive(String value)
Encodes a value.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
SnmpAbstractDecoder.decodePrimitiveAsBytes(SnmpField code)
Decodes a value.
|
protected int |
SnmpAbstractDecoder.decodePrimitiveAsInt(SnmpField code)
Decodes a value.
|
protected IpAddress |
SnmpAbstractDecoder.decodePrimitiveAsIpAddress(SnmpField code)
Decodes a value.
|
protected long |
SnmpAbstractDecoder.decodePrimitiveAsLong(SnmpField code)
Decodes a value.
|
protected MacAddress |
SnmpAbstractDecoder.decodePrimitiveAsMacAddress(SnmpField code)
Decodes a value.
|
protected String |
SnmpAbstractDecoder.decodePrimitiveAsString(SnmpField code)
Decodes a value.
|
Constructor and Description |
---|
SnmpReadCommand(Oid identity,
Decoder<D,SnmpField> decoder)
Creates a new SNMP read command.
|
SnmpReadListCommand(Oid identity,
Decoder<D,SnmpField> decoder)
Creates a new SNMP unidirectional list command (Read-only attribute
list).
|
SnmpReadListCommand(Oid identity,
Decoder<D,SnmpField> decoder,
int maxRepetitions)
Creates a new SNMP unidirectional list command (Read-only attribute
list).
|
SnmpReadWriteCommand(Oid identity,
Codec<D,SnmpField> codec)
Creates a new SNMP read/write command.
|
Copyright © 2016. All Rights Reserved.