|
|||||||||
| 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 String |
SNMPCOUNTER32
|
static String |
SNMPCOUNTER64
|
static String |
SNMPENDOFMIBVIEW
|
static String |
SNMPGAUGE32
|
static String |
SNMPINT32
|
static String |
SNMPIPADDRESS
|
static String |
SNMPNOSUCHINSTANCE
|
static String |
SNMPNOSUCHOBJECT
|
static String |
SNMPNULL
|
static String |
SNMPOBJECTID
|
static String |
SNMPOCTETSTRING
|
static String |
SNMPOPAQUE
|
static String |
SNMPTIMETICKS
|
static String |
SNMPUINT32
|
static String |
SNMPV2PARTYCLOCK
|
| Constructor Summary | |
|---|---|
NamedSnmpVar(String type,
String alias,
String oid)
This constructor creates a new instance of the class with the type, alias and object identifier. |
|
NamedSnmpVar(String type,
String alias,
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 | |
|---|---|
String |
getAlias()
Returns the alias for the object identifier. |
CollectionTracker |
getCollectionTracker()
|
int |
getColumn()
Returns the column of the table this instance is in. |
String |
getOid()
Returns the object identifer for this instance. |
SnmpObjId |
getSnmpObjId()
|
static CollectionTracker[] |
getTrackersFor(NamedSnmpVar[] columns)
|
String |
getType()
Returns the class name stored in m_type which represents the expected SNMP data type of the object. |
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 String SNMPINT32
public static final String SNMPUINT32
public static final String SNMPCOUNTER32
public static final String SNMPCOUNTER64
public static final String SNMPGAUGE32
public static final String SNMPTIMETICKS
public static final String SNMPOCTETSTRING
public static final String SNMPOPAQUE
public static final String SNMPIPADDRESS
public static final String SNMPOBJECTID
public static final String SNMPV2PARTYCLOCK
public static final String SNMPNOSUCHINSTANCE
public static final String SNMPNOSUCHOBJECT
public static final String SNMPENDOFMIBVIEW
public static final String SNMPNULL
| Constructor Detail |
|---|
public NamedSnmpVar(String type,
String alias,
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(String type,
String alias,
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 String getType()
public Class<?> getTypeClass()
throws ClassNotFoundException
ClassNotFoundException - Thrown from this method if forName() fails.public String getAlias()
public String getOid()
public SnmpObjId getSnmpObjId()
public boolean isTableEntry()
public CollectionTracker getCollectionTracker()
getCollectionTracker in interface Collectablepublic int getColumn()
public static CollectionTracker[] getTrackersFor(NamedSnmpVar[] columns)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||