public class LatencyCollectionAttribute extends Object implements CollectionAttribute
LatencyCollectionAttribute class.
| Constructor and Description |
|---|
LatencyCollectionAttribute(LatencyCollectionResource resource,
LatencyCollectionAttributeType type,
String name,
Double value)
Constructor for LatencyCollectionAttribute.
|
| Modifier and Type | Method and Description |
|---|---|
LatencyCollectionAttributeType |
getAttributeType()
getAttributeType
|
String |
getMetricIdentifier()
Get the metric identifier for the attribute to be used for NRTG collection
|
String |
getName()
getName
|
Double |
getNumericValue()
getNumericValue
|
CollectionResource |
getResource()
getResource
|
String |
getStringValue()
getStringValue
|
AttributeType |
getType()
getType
|
boolean |
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.
|
void |
storeAttribute(Persister persister)
Stores the attribute using the persister.
|
String |
toString() |
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 LatencyCollectionAttribute(LatencyCollectionResource resource, LatencyCollectionAttributeType type, String name, Double value)
Constructor for LatencyCollectionAttribute.
resource - a LatencyCollectionResource object.type - a LatencyCollectionAttributeType object.name - a String object.value - a Double object.public LatencyCollectionAttributeType getAttributeType()
getAttributeType
getAttributeType in interface CollectionAttributeLatencyCollectionAttributeType object.public String getName()
getName
getName in interface CollectionAttributeString object.public Double getNumericValue()
getNumericValue
getNumericValue in interface CollectionAttributeString object.public CollectionResource getResource()
getResource
getResource in interface CollectionAttributeCollectionResource object.public String getStringValue()
getStringValue
getStringValue in interface CollectionAttributeString object.public AttributeType getType()
getType
getType in interface CollectionAttributeAttributeType object.public boolean shouldPersist(ServiceParameters params)
shouldPersist in interface Persistableparams - a ServiceParameters object.public void storeAttribute(Persister persister)
storeAttribute in interface CollectionAttributepersister - a org.opennms.netmgt.collectd.Persister object.public void visit(CollectionSetVisitor visitor)
visit in interface CollectionVisitablevisitor - a CollectionSetVisitor object.public String getMetricIdentifier()
CollectionAttributegetMetricIdentifier in interface CollectionAttributeCopyright © 2022. All rights reserved.