|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VariableBinding
The VariableBinding interface represents an association between an SNMP OID (object identifier) and its associated value. A PDU contains a list of VariableBindings.
Method Summary | |
---|---|
java.lang.String |
getIndex()
Gets the index portion of the OID of this variable binding. |
java.util.Vector |
getIndexValues()
Gets the index values as a Vector of Integer ,
Long , or String . |
IObjectID |
getObjectID()
Returns the OID of the variable binding as an IObjectID. |
java.lang.String |
getOid()
Gets the OID of the variable binding. |
int |
getSyntax()
Gets the syntax of the variable. |
java.lang.String |
getValue()
Gets a String representation of the value. |
org.snmp4j.smi.Variable |
getVariable()
Returns the value as a SNMP4J Variable instance. |
void |
setIndex(java.lang.String index)
Sets the index index portion of the OID of this variable binding |
void |
setIndexValues(java.util.Vector values)
Sets the index for this columnar object by a given Vector
of values. |
void |
setOid(java.lang.String oid)
Sets the OID of the variable binding. |
void |
setValue(java.lang.String value)
Sets the value of the variable binding by providing a String representation of that value. |
Method Detail |
---|
java.lang.String getOid()
IObjectID getObjectID()
java.lang.String getIndex()
null
will be returned.void setIndex(java.lang.String index)
index
- the index portion as a dotted String, for example
"127.0.0.1.1028.0.0.0.0.26723" for a column of the tcpConnTable.void setIndexValues(java.util.Vector values)
Vector
of values.
values
- a Vector of values. Each value has to correspond to a subindex object
type of the table this columnar object belongs to. If this object is
not a table or the values do not match with the INDEX clause of this
table, the index will not be set. The values are interpreted by their
String representation using their toString()
method
and the subindex syntax (including its DISPLAY-HINT format).java.util.Vector getIndexValues()
Vector
of Integer
,
Long
, or String
.
Vector
of subindex values or null
if the
index of the OID of this variable binding cannot be interpreted
according to the table definition of this columnar object or if this
is not a columnar object.void setOid(java.lang.String oid)
oid
- a String representing an OID as dotted String. The first subidentifier
may denote an object name - all other subidentifiers have to be
numerical.
Examples: "ifAdminStatus.2", "1.3.6.1.2.1.2.2.1.7",
"atmVclAdminStatus.1.0.64"java.lang.String getValue()
org.snmp4j.smi.Variable getVariable()
Variable
see
https://www.snmp4j.org/doc/org/snmp4j/smi/Variable.html
void setValue(java.lang.String value)
value
- a String representing the variable bindings value.int getSyntax()
|
Copyright 2003-2011, Frank Fock, All Rights Reserved. http://www.mibexplorer.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |