Class LatencyCollectionAttribute
- java.lang.Object
-
- org.opennms.netmgt.collection.api.LatencyCollectionAttribute
-
- All Implemented Interfaces:
CollectionAttribute,CollectionVisitable,Persistable
public class LatencyCollectionAttribute extends Object implements CollectionAttribute
LatencyCollectionAttribute class.
- Version:
- $Id: $
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description LatencyCollectionAttribute(LatencyCollectionResource resource, LatencyCollectionAttributeType type, String name, Double value)Constructor for LatencyCollectionAttribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LatencyCollectionAttributeTypegetAttributeType()getAttributeTypeStringgetMetricIdentifier()Get the metric identifier for the attribute to be used for NRTG collectionStringgetName()getNameDoublegetNumericValue()getNumericValueCollectionResourcegetResource()getResourceStringgetStringValue()getStringValueAttributeTypegetType()getTypebooleanshouldPersist(ServiceParameters params)Determines whether the attribute should be persisted.voidstoreAttribute(Persister persister)Stores the attribute using the persister.StringtoString()voidvisit(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)
-
-
-
Constructor Detail
-
LatencyCollectionAttribute
public LatencyCollectionAttribute(LatencyCollectionResource resource, LatencyCollectionAttributeType type, String name, Double value)
Constructor for LatencyCollectionAttribute.
- Parameters:
resource- aLatencyCollectionResourceobject.type- aLatencyCollectionAttributeTypeobject.name- aStringobject.value- aDoubleobject.
-
-
Method Detail
-
getAttributeType
public LatencyCollectionAttributeType getAttributeType()
getAttributeType
- Specified by:
getAttributeTypein interfaceCollectionAttribute- Returns:
- a
LatencyCollectionAttributeTypeobject.
-
getName
public String getName()
getName
- Specified by:
getNamein interfaceCollectionAttribute- Returns:
- a
Stringobject.
-
getNumericValue
public Double getNumericValue()
getNumericValue
- Specified by:
getNumericValuein interfaceCollectionAttribute- Returns:
- a
Stringobject.
-
getResource
public CollectionResource getResource()
getResource
- Specified by:
getResourcein interfaceCollectionAttribute- Returns:
- a
CollectionResourceobject.
-
getStringValue
public String getStringValue()
getStringValue
- Specified by:
getStringValuein interfaceCollectionAttribute- Returns:
- a
Stringobject.
-
getType
public AttributeType getType()
getType
- Specified by:
getTypein interfaceCollectionAttribute- Returns:
- a
AttributeTypeobject.
-
shouldPersist
public boolean shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.- Specified by:
shouldPersistin interfacePersistable- Parameters:
params- aServiceParametersobject.- Returns:
- a boolean.
-
storeAttribute
public void storeAttribute(Persister persister)
Stores the attribute using the persister. Not sure this should be here...- Specified by:
storeAttributein interfaceCollectionAttribute- Parameters:
persister- aorg.opennms.netmgt.collectd.Persisterobject.
-
visit
public 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)- Specified by:
visitin interfaceCollectionVisitable- Parameters:
visitor- aCollectionSetVisitorobject.
-
getMetricIdentifier
public String getMetricIdentifier()
Description copied from interface:CollectionAttributeGet the metric identifier for the attribute to be used for NRTG collection- Specified by:
getMetricIdentifierin interfaceCollectionAttribute- Returns:
- the metric identifier
-
-