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 CollectionAttribute
LatencyCollectionAttributeType
object.public String getName()
getName
getName
in interface CollectionAttribute
String
object.public Double getNumericValue()
getNumericValue
getNumericValue
in interface CollectionAttribute
String
object.public CollectionResource getResource()
getResource
getResource
in interface CollectionAttribute
CollectionResource
object.public String getStringValue()
getStringValue
getStringValue
in interface CollectionAttribute
String
object.public AttributeType getType()
getType
getType
in interface CollectionAttribute
AttributeType
object.public boolean shouldPersist(ServiceParameters params)
shouldPersist
in interface Persistable
params
- a ServiceParameters
object.public void storeAttribute(Persister persister)
storeAttribute
in interface CollectionAttribute
persister
- a org.opennms.netmgt.collectd.Persister
object.public void visit(CollectionSetVisitor visitor)
visit
in interface CollectionVisitable
visitor
- a CollectionSetVisitor
object.public String getMetricIdentifier()
CollectionAttribute
getMetricIdentifier
in interface CollectionAttribute
Copyright © 2021. All rights reserved.