public class SnmpAttribute extends AbstractCollectionAttribute
SnmpAttribute class.
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
m_attribType, m_resource| Constructor and Description |
|---|
SnmpAttribute(CollectionResource resource,
SnmpAttributeType type,
SnmpValue val)
Constructor for SnmpAttribute.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getMetricIdentifier()
Get the metric identifier for the attribute to be used for NRTG collection
|
Number |
getNumericValue()
getNumericValue
|
String |
getStringValue()
getStringValue
|
SnmpValue |
getValue()
getValue
|
int |
hashCode()
hashCode
|
void |
storeAttribute(Persister persister)
Stores the attribute using the persister.
|
String |
toString()
toString
|
getAttributeType, getName, getResource, getType, shouldPersist, visitpublic SnmpAttribute(CollectionResource resource, SnmpAttributeType type, SnmpValue val)
Constructor for SnmpAttribute.
resource - a CollectionResource object.type - a SnmpAttributeType object.val - a SnmpValue object.public void storeAttribute(Persister persister)
storeAttribute in interface CollectionAttributestoreAttribute in class AbstractCollectionAttributepersister - a org.opennms.netmgt.collectd.Persister object.public String toString()
toString
public String getMetricIdentifier()
CollectionAttributepublic Number getNumericValue()
getNumericValue
getNumericValue in interface CollectionAttributegetNumericValue in class AbstractCollectionAttributeString object.public String getStringValue()
getStringValue
getStringValue in interface CollectionAttributegetStringValue in class AbstractCollectionAttributeString object.Copyright © 2020. All rights reserved.