public class SnmpObjectId extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SnmpObjectId oid)
Compare two object identifiers.
|
boolean |
equals(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(String s)
Parse string argument as SNMP OID.
|
void |
setNXCPVariable(org.netxms.base.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.
|
String |
toString() |
public SnmpObjectId()
public SnmpObjectId(long[] value)
value
- OID elementspublic SnmpObjectId(SnmpObjectId parent, long id)
value
- parent OIDpublic static SnmpObjectId parseSnmpObjectId(String s) throws SnmpObjectIdFormatException
s
- string to parseSnmpObjectIdFormatException
- when string passed is not a valid SNMP OIDpublic int getLength()
public void setNXCPVariable(org.netxms.base.NXCPMessage msg, long varId)
msg
- NXCP messagevarId
- Variable IDpublic boolean startsWith(SnmpObjectId oid)
oid
- Object id to checkpublic int compareTo(SnmpObjectId oid)
oid
- object identifier to compare withpublic long getIdFromPos(int pos)
pos
- positionCopyright © 2016. All rights reserved.