| org.jboss.jmx.adaptor.snmp.agent.ComparableSnmpObjectId
ComparableSnmpObjectId | public class ComparableSnmpObjectId extends SnmpObjectId implements Comparable(Code) | | Provide SnmpObjectIds that are Comparable to be used
in SortedSets etc.
author: Heiko W. Rupp version: $Revision: 57210 $ |
ComparableSnmpObjectId | public ComparableSnmpObjectId(String oid)(Code) | | |
ComparableSnmpObjectId | public ComparableSnmpObjectId(SnmpObjectId oid)(Code) | | |
ComparableSnmpObjectId | public ComparableSnmpObjectId(int[] identifiers)(Code) | | |
compareTo | public int compareTo(Object o)(Code) | | Compare to the passed object. Uses compare()
from the underlying snmp-library
See Also: SnmpObjectId.compare() Parameters: o - Object to compare with (Usually a ComparableSnmpObjectId) -1, if no SnmpObjectId passed in, the result of the underlying compare otherwise. |
getNextArc | public ComparableSnmpObjectId getNextArc()(Code) | | Build an oid where the second last component
(after removing a .0 of a leaf) is increased by 1.
The last component is removed, to the result actually forms
the root of a subtree, that is adjacent to the subtree this
object is in.
Example .1.2.3.4.0 -> .1.2.4
Example .1.2.3.4.5 -> .1.2.4
|
isLeaf | public boolean isLeaf()(Code) | | This object is a leaf if the last part of the oid parts is a 0 (Zero)
true if the oid ends in 0 |
removeLastPart | public ComparableSnmpObjectId removeLastPart()(Code) | | Removes the last oid-component.
Example .1.2.3.4.0 as input yields .1.2.3.4 as output
an oid with the last part removed. |
|
|