|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.capsd.snmp.NamedSnmpVar
public final class NamedSnmpVar
The NamedSnmpVar class is used to associate a name for a particular snmp instance with its object identifier. Common names often include ifIndex, sysObjectId, etc al. These names are the names of particular variables as defined by the SMI. Should the instance also be part of a table, then the column number of the instance is also stored in the object.
| Field Summary | |
|---|---|
static java.lang.String |
SNMPCOUNTER32
|
static java.lang.String |
SNMPCOUNTER64
|
static java.lang.String |
SNMPENDOFMIBVIEW
|
static java.lang.String |
SNMPGAUGE32
|
static java.lang.String |
SNMPINT32
|
static java.lang.String |
SNMPIPADDRESS
|
static java.lang.String |
SNMPNOSUCHINSTANCE
|
static java.lang.String |
SNMPNOSUCHOBJECT
|
static java.lang.String |
SNMPNULL
|
static java.lang.String |
SNMPOBJECTID
|
static java.lang.String |
SNMPOCTETSTRING
|
static java.lang.String |
SNMPOPAQUE
|
static java.lang.String |
SNMPTIMETICKS
|
static java.lang.String |
SNMPUINT32
|
static java.lang.String |
SNMPV2PARTYCLOCK
|
| Constructor Summary | |
|---|---|
NamedSnmpVar(java.lang.String type,
java.lang.String alias,
java.lang.String oid)
This constructor creates a new instance of the class with the type, alias and object identifier. |
|
NamedSnmpVar(java.lang.String type,
java.lang.String alias,
java.lang.String oid,
int column)
This constructor creates a new instance of the class with the type, alias, object identifier, and table column set. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAlias()
Returns the alias for the object identifier. |
org.opennms.netmgt.snmp.CollectionTracker |
getCollectionTracker()
|
int |
getColumn()
Returns the column of the table this instance is in. |
java.lang.String |
getOid()
Returns the object identifer for this instance. |
org.opennms.netmgt.snmp.SnmpObjId |
getSnmpObjId()
|
static org.opennms.netmgt.snmp.CollectionTracker[] |
getTrackersFor(NamedSnmpVar[] columns)
|
java.lang.String |
getType()
Returns the class name stored in m_type which represents the expected SNMP data type of the object. |
java.lang.Class |
getTypeClass()
Returns the class object associated with the class name stored in m_type. |
boolean |
isTableEntry()
Returns true if this instance is part of a table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SNMPINT32
public static final java.lang.String SNMPUINT32
public static final java.lang.String SNMPCOUNTER32
public static final java.lang.String SNMPCOUNTER64
public static final java.lang.String SNMPGAUGE32
public static final java.lang.String SNMPTIMETICKS
public static final java.lang.String SNMPOCTETSTRING
public static final java.lang.String SNMPOPAQUE
public static final java.lang.String SNMPIPADDRESS
public static final java.lang.String SNMPOBJECTID
public static final java.lang.String SNMPV2PARTYCLOCK
public static final java.lang.String SNMPNOSUCHINSTANCE
public static final java.lang.String SNMPNOSUCHOBJECT
public static final java.lang.String SNMPENDOFMIBVIEW
public static final java.lang.String SNMPNULL
| Constructor Detail |
|---|
public NamedSnmpVar(java.lang.String type,
java.lang.String alias,
java.lang.String oid)
type - The expected SNMP data type of this object.alias - The alias for the object identifier.oid - The object identifier for the instance.
public NamedSnmpVar(java.lang.String type,
java.lang.String alias,
java.lang.String oid,
int column)
type - The expected SNMP data type of this object.alias - The alias for the object identifier.oid - The object identifier for the instance.column - The column entry for its table.| Method Detail |
|---|
public java.lang.String getType()
public java.lang.Class getTypeClass()
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - Thrown from this method if forName() fails.public java.lang.String getAlias()
public java.lang.String getOid()
public org.opennms.netmgt.snmp.SnmpObjId getSnmpObjId()
public boolean isTableEntry()
public org.opennms.netmgt.snmp.CollectionTracker getCollectionTracker()
getCollectionTracker in interface org.opennms.netmgt.snmp.Collectablepublic int getColumn()
public static org.opennms.netmgt.snmp.CollectionTracker[] getTrackersFor(NamedSnmpVar[] columns)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||