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, visit
public 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 CollectionAttribute
storeAttribute
in class AbstractCollectionAttribute
persister
- a org.opennms.netmgt.collectd.Persister
object.public String toString()
toString
public String getMetricIdentifier()
CollectionAttribute
public Number getNumericValue()
getNumericValue
getNumericValue
in interface CollectionAttribute
getNumericValue
in class AbstractCollectionAttribute
String
object.public String getStringValue()
getStringValue
getStringValue
in interface CollectionAttribute
getStringValue
in class AbstractCollectionAttribute
String
object.Copyright © 2021. All rights reserved.