|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.netsnmp.NativeOID
|
+--org.netsnmp.DefaultOID
| Field Summary | |
protected int[] |
oids
|
| Constructor Summary | |
DefaultOID()
Creates an Empty OID |
|
DefaultOID(int[] descriptor)
Creates and OID from an array of integer identifiers |
|
DefaultOID(OID srcOid)
Creates a new DefaultOID from an existing one |
|
DefaultOID(OID oid,
int inst)
Creates an OID from another OID and a specific instance |
|
DefaultOID(String descriptor)
Creates a new instance of OID Creates an OID from a text descriptor. |
|
DefaultOID(String descriptor,
int instance)
Creates a new oid from a text descriptor and a integer instance. |
|
| Method Summary | |
int |
length()
length of the OID |
int[] |
oids()
Get the path elements of the OID |
| Methods inherited from class org.netsnmp.NativeOID |
append, compareTo, compareTo, toString, toText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final int[] oids
| Constructor Detail |
public DefaultOID(String descriptor)
throws MIBItemNotFound
Example:
oid = new OID("iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0") ;
or
oid = new OID("1.3.6.1.2.1.1.1.0") ;
MIBItemNotFound - if the Item was not found in the
currently loaded mibs. NOTE: Finding an item within the
locally installed MIBs does not guarantee that it will be found
on a remote agent.public DefaultOID()
public DefaultOID(OID srcOid)
srcOid -
public DefaultOID(String descriptor,
int instance)
throws MIBItemNotFound
String ifSpeedDescr = "iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifSpeed" ; OID ifSpeeds[2] = new OID[2] ; ifSpeeds[0] = new OID(ifSpeedDescr, 1) ; ifSpeeds[1] = new OID(ifSpeedDescr, 2) ;
descriptor - OID of Objectinstance - specific instance
public DefaultOID(OID oid,
int inst)
oid - Object Identifierinst - Specific instancepublic DefaultOID(int[] descriptor)
Example:
int sysDescrInts[] = { 1,3,6,1,2,1,1,1,0 } ;
OID oid = new OID(sysDescrInts) ;
equivalent to:
oid = new OID("iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0") ;
| Method Detail |
public int[] oids()
oids in interface OIDpublic int length()
length in interface OID
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||