Interface CollectionAttribute
-
- All Superinterfaces:
CollectionVisitable,Persistable
- All Known Implementing Classes:
AbstractCollectionAttribute,AliasedAttribute,CollectionAttributeWrapper,LatencyCollectionAttribute,SnmpAttribute
public interface CollectionAttribute extends CollectionVisitable, Persistable
CollectionAttribute interface.
- Version:
- $Id: $
- Author:
- ranger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CollectionAttributeTypegetAttributeType()Return the attribute type for this attribute.StringgetMetricIdentifier()Get the metric identifier for the attribute to be used for NRTG collectionStringgetName()Gets the name of the attributeNumbergetNumericValue()Get the numeric value of the attribute.CollectionResourcegetResource()getResourceStringgetStringValue()Get the value of the attribute as a String.AttributeTypegetType()The type of metric that the attribute represents.voidstoreAttribute(Persister persister)Stores the attribute using the persister.-
Methods inherited from interface org.opennms.netmgt.collection.api.CollectionVisitable
visit
-
Methods inherited from interface org.opennms.netmgt.collection.api.Persistable
shouldPersist
-
-
-
-
Method Detail
-
getResource
CollectionResource getResource()
getResource
- Returns:
- a
org.opennms.netmgt.config.collector.CollectionResourceobject.
-
getStringValue
String getStringValue()
Get the value of the attribute as a String.- Returns:
- a String representing the attribute value
-
getNumericValue
Number getNumericValue()
Get the numeric value of the attribute.- Returns:
- a
Numberobject.
-
getName
String getName()
Gets the name of the attribute- Returns:
- a name
-
getMetricIdentifier
String getMetricIdentifier()
Get the metric identifier for the attribute to be used for NRTG collection- Returns:
- the metric identifier
-
storeAttribute
void storeAttribute(Persister persister)
Stores the attribute using the persister. Not sure this should be here...- Parameters:
persister- aorg.opennms.netmgt.collectd.Persisterobject.
-
getAttributeType
CollectionAttributeType getAttributeType()
Return the attribute type for this attribute. Not sure what an CollectionAttributeType is yet... please fill in if you do know- Returns:
- a
org.opennms.netmgt.collectd.CollectionAttributeTypeobject.
-
getType
AttributeType getType()
The type of metric that the attribute represents.
- Returns:
- a
AttributeTypeobject.
-
-