public final class NamedSnmpVar extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SNMPCOUNTER32
Constant
SNMPCOUNTER32="org.opennms.protocols.snmp.SnmpCounter3"{trunked} |
static String |
SNMPCOUNTER64
Constant
SNMPCOUNTER64="org.opennms.protocols.snmp.SnmpCounter6"{trunked} |
static String |
SNMPENDOFMIBVIEW
Constant
SNMPENDOFMIBVIEW="org.opennms.protocols.snmp.SnmpEndOfMib"{trunked} |
static String |
SNMPGAUGE32
Constant
SNMPGAUGE32="org.opennms.protocols.snmp.SnmpGauge32" |
static String |
SNMPINT32
Constant
SNMPINT32="org.opennms.protocols.snmp.SnmpInt32" |
static String |
SNMPIPADDRESS
Constant
SNMPIPADDRESS="org.opennms.protocols.snmp.SnmpIPAddres"{trunked} |
static String |
SNMPNOSUCHINSTANCE
Constant
SNMPNOSUCHINSTANCE="org.opennms.protocols.snmp.SnmpNoSuchIn"{trunked} |
static String |
SNMPNOSUCHOBJECT
Constant
SNMPNOSUCHOBJECT="org.opennms.protocols.snmp.SnmpNoSuchOb"{trunked} |
static String |
SNMPNULL
Constant
SNMPNULL="org.opennms.protocols.snmp.SnmpNull" |
static String |
SNMPOBJECTID
Constant
SNMPOBJECTID="org.opennms.protocols.snmp.SnmpObjectId" |
static String |
SNMPOCTETSTRING
Constant
SNMPOCTETSTRING="org.opennms.protocols.snmp.SnmpOctetStr"{trunked} |
static String |
SNMPOPAQUE
Constant
SNMPOPAQUE="org.opennms.protocols.snmp.SnmpOpaque" |
static String |
SNMPTIMETICKS
Constant
SNMPTIMETICKS="org.opennms.protocols.snmp.SnmpTimeTick"{trunked} |
static String |
SNMPUINT32
Constant
SNMPUINT32="org.opennms.protocols.snmp.SnmpUInt32" |
static String |
SNMPV2PARTYCLOCK
Constant
SNMPV2PARTYCLOCK="org.opennms.protocols.snmp.SnmpV2PartyC"{trunked} |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Returns the alias for the object identifier.
|
CollectionTracker |
getCollectionTracker(Set<SnmpInstId> instances)
getCollectionTracker
|
int |
getColumn()
Returns the column of the table this instance is in.
|
String |
getOid()
Returns the object identifer for this instance.
|
SnmpObjId |
getSnmpObjId()
getSnmpObjId
|
static CollectionTracker[] |
getTrackersFor(NamedSnmpVar[] columns)
getTrackersFor
|
static CollectionTracker[] |
getTrackersFor(NamedSnmpVar[] columns,
Set<SnmpInstId> instances)
getTrackersFor
|
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.
|
public static final String SNMPINT32
SNMPINT32="org.opennms.protocols.snmp.SnmpInt32"
public static final String SNMPUINT32
SNMPUINT32="org.opennms.protocols.snmp.SnmpUInt32"
public static final String SNMPCOUNTER32
SNMPCOUNTER32="org.opennms.protocols.snmp.SnmpCounter3"{trunked}
public static final String SNMPCOUNTER64
SNMPCOUNTER64="org.opennms.protocols.snmp.SnmpCounter6"{trunked}
public static final String SNMPGAUGE32
SNMPGAUGE32="org.opennms.protocols.snmp.SnmpGauge32"
public static final String SNMPTIMETICKS
SNMPTIMETICKS="org.opennms.protocols.snmp.SnmpTimeTick"{trunked}
public static final String SNMPOCTETSTRING
SNMPOCTETSTRING="org.opennms.protocols.snmp.SnmpOctetStr"{trunked}
public static final String SNMPOPAQUE
SNMPOPAQUE="org.opennms.protocols.snmp.SnmpOpaque"
public static final String SNMPIPADDRESS
SNMPIPADDRESS="org.opennms.protocols.snmp.SnmpIPAddres"{trunked}
public static final String SNMPOBJECTID
SNMPOBJECTID="org.opennms.protocols.snmp.SnmpObjectId"
public static final String SNMPV2PARTYCLOCK
SNMPV2PARTYCLOCK="org.opennms.protocols.snmp.SnmpV2PartyC"{trunked}
public static final String SNMPNOSUCHINSTANCE
SNMPNOSUCHINSTANCE="org.opennms.protocols.snmp.SnmpNoSuchIn"{trunked}
public static final String SNMPNOSUCHOBJECT
SNMPNOSUCHOBJECT="org.opennms.protocols.snmp.SnmpNoSuchOb"{trunked}
public static final String SNMPENDOFMIBVIEW
SNMPENDOFMIBVIEW="org.opennms.protocols.snmp.SnmpEndOfMib"{trunked}
public static final String SNMPNULL
SNMPNULL="org.opennms.protocols.snmp.SnmpNull"
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.public String getType()
String
object.public Class<?> getTypeClass() throws ClassNotFoundException
Class
object.ClassNotFoundException
- Thrown from this method if forName() fails.ClassNotFoundException
- if any.public String getAlias()
String
object.public String getOid()
String
object.public boolean isTableEntry()
public CollectionTracker getCollectionTracker(Set<SnmpInstId> instances)
getCollectionTracker
instances
- a Set
object.CollectionTracker
object.public int getColumn()
public static CollectionTracker[] getTrackersFor(NamedSnmpVar[] columns, Set<SnmpInstId> instances)
getTrackersFor
columns
- an array of NamedSnmpVar
objects.instances
- a Set
object.CollectionTracker
objects.public static CollectionTracker[] getTrackersFor(NamedSnmpVar[] columns)
getTrackersFor
columns
- an array of NamedSnmpVar
objects.CollectionTracker
objects.Copyright © 2021. All rights reserved.