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 CollectionVisitablevisitor - a CollectionSetVisitor object.public boolean shouldPersist(ServiceParameters params)
shouldPersist in interface Persistableparams - a ServiceParameters object.public CollectionResource getResource()
getResource
getResource in interface CollectionAttributeorg.opennms.netmgt.config.collector.CollectionResource object.public String getStringValue()
getStringValue in interface CollectionAttributepublic Number getNumericValue()
getNumericValue in interface CollectionAttributeNumber object.public String getName()
getName in interface CollectionAttributepublic String getMetricIdentifier()
getMetricIdentifier in interface CollectionAttributepublic void storeAttribute(Persister persister)
storeAttribute in interface CollectionAttributepersister - a org.opennms.netmgt.collectd.Persister object.public CollectionAttributeType getAttributeType()
getAttributeType in interface CollectionAttributeorg.opennms.netmgt.collectd.CollectionAttributeType object.public AttributeType getType()
The type of metric that the attribute represents.
getType in interface CollectionAttributeAttributeType object.Copyright © 2022. All rights reserved.