public abstract class AbstractCollectionAttribute extends Object implements CollectionAttribute
Abstract AbstractCollectionAttribute class.
| Modifier and Type | Field and Description |
|---|---|
protected CollectionAttributeType |
m_attribType |
protected CollectionResource |
m_resource |
| Constructor and Description |
|---|
AbstractCollectionAttribute(CollectionAttributeType attribType,
CollectionResource resource) |
| Modifier and Type | Method and Description |
|---|---|
CollectionAttributeType |
getAttributeType()
getAttributeType
|
String |
getName()
Gets the name of the attribute
|
abstract Number |
getNumericValue()
getNumericValue
|
CollectionResource |
getResource()
getResource
|
abstract String |
getStringValue()
getStringValue
|
String |
getType()
Returns type of value (typically one of "counter", "gauge", "timeticks", "integer", "octetstring" - see
NumericAttributeType) |
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)
Since a
CollectionAttribute is a terminal value, we just visit and
complete it since it doesn't have any "children". |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricIdentifierprotected final CollectionAttributeType m_attribType
protected final CollectionResource m_resource
public AbstractCollectionAttribute(CollectionAttributeType attribType, CollectionResource resource)
public final CollectionAttributeType getAttributeType()
getAttributeType
getAttributeType in interface CollectionAttributeCollectionAttributeType object.public final CollectionResource getResource()
CollectionAttributegetResource
getResource in interface CollectionAttributeorg.opennms.netmgt.config.collector.CollectionResource object.public final String getName()
CollectionAttributegetName in interface CollectionAttributepublic final String getType()
CollectionAttributeNumericAttributeType)getType in interface CollectionAttributepublic abstract Number getNumericValue()
getNumericValue
getNumericValue in interface CollectionAttributeNumber object.public abstract String getStringValue()
getStringValue
getStringValue in interface CollectionAttributeString object.public boolean shouldPersist(ServiceParameters params)
PersistableshouldPersist in interface Persistableparams - a ServiceParameters object.public void storeAttribute(Persister persister)
storeAttribute in interface CollectionAttributepersister - a org.opennms.netmgt.collectd.Persister object.public final void visit(CollectionSetVisitor visitor)
CollectionAttribute is a terminal value, we just visit and
complete it since it doesn't have any "children".visit in interface CollectionVisitablevisitor - a CollectionSetVisitor object.Copyright © 2020. All rights reserved.