|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netxms.client.snmp.SnmpObjectId
public class SnmpObjectId
This class represents SNMP Object Id (OID)
| Constructor Summary | |
|---|---|
SnmpObjectId()
Create empty OID |
|
SnmpObjectId(long[] value)
Create OID from array of OID elements |
|
SnmpObjectId(SnmpObjectId parent,
long id)
Create child OID - add given value at the end of parent OID. |
|
| Method Summary | |
|---|---|
int |
compareTo(SnmpObjectId oid)
Compare two object identifiers. |
boolean |
equals(java.lang.Object obj)
|
long |
getIdFromPos(int pos)
Get part of object ID from given position. |
int |
getLength()
Get object identifier length. |
int |
hashCode()
|
static SnmpObjectId |
parseSnmpObjectId(java.lang.String s)
Parse string argument as SNMP OID. |
void |
setNXCPVariable(NXCPMessage msg,
long varId)
Set NXCP variable to OID's value |
boolean |
startsWith(SnmpObjectId oid)
Check if this object id starts with given object id. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SnmpObjectId()
public SnmpObjectId(long[] value)
value - OID elements
public SnmpObjectId(SnmpObjectId parent,
long id)
value - parent OID| Method Detail |
|---|
public static SnmpObjectId parseSnmpObjectId(java.lang.String s)
throws SnmpObjectIdFormatException
s - string to parse
SnmpObjectIdFormatException - when string passed is not a valid SNMP OIDpublic int getLength()
public void setNXCPVariable(NXCPMessage msg,
long varId)
msg - NXCP messagevarId - Variable IDpublic boolean startsWith(SnmpObjectId oid)
oid - Object id to check
public int compareTo(SnmpObjectId oid)
oid - object identifier to compare with
public long getIdFromPos(int pos)
pos - position
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||