All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.jaw.snmp.agent.SnmpIndex
java.lang.Object
|
+----com.sun.jaw.snmp.agent.SnmpIndex
- public class SnmpIndex
- extends Object
- implements Serializable
The SnmpIndex class represents a SNMP index.
A SnmpIndex is represented as a Vector of oid.
You should not need to use this class directly.
-
SnmpIndex(SnmpOid)
-
-
SnmpIndex(SnmpOid[])
- Initialize a SnmpIndex using a vector of Object identifier.
-
compareTo(SnmpIndex)
- Compares two indexes.
-
equals(SnmpIndex)
- Compares two indexes for equality.
-
getComponents()
- Returns the index as a vector of Object identifiers.
-
getNbComponents()
- Get the number of object identifiers the index is made of.
-
toString()
- String representation of the index.
SnmpIndex
public SnmpIndex(SnmpOid oidList[])
- Initialize a SnmpIndex using a vector of Object identifier.
Following the RFC recommendations, every syntax that is used as a
table index should have an Object identifier representations. There are
some guidelines on how to map the different syntaxes into an Object identifier.
In the different SnmpValue classes provided, there is a "toOid" method to get
the Object identifier of the value.
- Parameters:
- oidList - list of Object identifiers.
SnmpIndex
public SnmpIndex(SnmpOid oid)
getNbComponents
public int getNbComponents()
- Get the number of object identifiers the index is made of.
getComponents
public Vector getComponents()
- Returns the index as a vector of Object identifiers.
equals
public boolean equals(SnmpIndex index)
- Compares two indexes for equality.
compareTo
public int compareTo(SnmpIndex index)
- Compares two indexes.
toString
public String toString()
- String representation of the index.
The different elements are separated by "//".
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index