public class CollectionAttributeWrapper extends Object implements CollectionAttribute
Constructor and Description |
---|
CollectionAttributeWrapper(CollectionAttribute wrapped) |
Modifier and Type | Method and Description |
---|---|
CollectionAttributeType |
getAttributeType()
Return the attribute type for this attribute.
|
String |
getMetricIdentifier()
Get the metric identifier for the attribute to be used for NRTG collection
|
String |
getName()
Gets the name of the attribute
|
Number |
getNumericValue()
Get the numeric value of the attribute.
|
CollectionResource |
getResource()
getResource
|
String |
getStringValue()
Get the value of the attribute as a String.
|
AttributeType |
getType()
The type of metric that the attribute represents.
|
boolean |
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.
|
void |
storeAttribute(Persister persister)
Stores the attribute using the persister.
|
void |
visit(CollectionSetVisitor visitor)
Provide a way to visit all the values in the CollectionSet, for any appropriate purposes (persisting, thresholding, or others)
The expectation is that calling this method will ultimately call visitResource, visitGroup and visitAttribute (as appropriate)
|
public CollectionAttributeWrapper(CollectionAttribute wrapped)
public void visit(CollectionSetVisitor visitor)
visit
in interface CollectionVisitable
visitor
- a CollectionSetVisitor
object.public boolean shouldPersist(ServiceParameters params)
shouldPersist
in interface Persistable
params
- a ServiceParameters
object.public CollectionResource getResource()
getResource
getResource
in interface CollectionAttribute
org.opennms.netmgt.config.collector.CollectionResource
object.public String getStringValue()
getStringValue
in interface CollectionAttribute
public Number getNumericValue()
getNumericValue
in interface CollectionAttribute
Number
object.public String getName()
getName
in interface CollectionAttribute
public String getMetricIdentifier()
getMetricIdentifier
in interface CollectionAttribute
public void storeAttribute(Persister persister)
storeAttribute
in interface CollectionAttribute
persister
- a org.opennms.netmgt.collectd.Persister
object.public CollectionAttributeType getAttributeType()
getAttributeType
in interface CollectionAttribute
org.opennms.netmgt.collectd.CollectionAttributeType
object.public AttributeType getType()
The type of metric that the attribute represents.
getType
in interface CollectionAttribute
AttributeType
object.Copyright © 2021. All rights reserved.