org.opennms.netmgt.collectd
Class AbstractCollectionAttribute

java.lang.Object
  extended by org.opennms.netmgt.collectd.AbstractCollectionAttribute
All Implemented Interfaces:
CollectionAttribute
Direct Known Subclasses:
SnmpAttribute

public abstract class AbstractCollectionAttribute
extends Object
implements CollectionAttribute


Constructor Summary
AbstractCollectionAttribute()
           
 
Method Summary
abstract  CollectionAttributeType getAttributeType()
          Return the attribute type for this attribute.
abstract  String getName()
          Gets the name of the attribute
abstract  String getNumericValue()
          Get the numeric value of the attribute, as a String.
abstract  CollectionResource getResource()
           
abstract  String getStringValue()
          Get the value of the attribute as a String.
protected  Category log()
           
abstract  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)
          Visit this attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opennms.netmgt.collectd.CollectionAttribute
getType
 

Constructor Detail

AbstractCollectionAttribute

public AbstractCollectionAttribute()
Method Detail

log

protected Category log()

getAttributeType

public abstract CollectionAttributeType getAttributeType()
Description copied from interface: CollectionAttribute
Return the attribute type for this attribute. Not sure what an CollectionAttributeType is yet... please fill in if you do know

Specified by:
getAttributeType in interface CollectionAttribute
Returns:

getName

public abstract String getName()
Description copied from interface: CollectionAttribute
Gets the name of the attribute

Specified by:
getName in interface CollectionAttribute
Returns:
a name

getNumericValue

public abstract String getNumericValue()
Description copied from interface: CollectionAttribute
Get the numeric value of the attribute, as a String. Assumes the underlying value is actually numeric, and will return null if it is not parseable.

Specified by:
getNumericValue in interface CollectionAttribute
Returns:
a string representation of the numeric value of this attribute

getResource

public abstract CollectionResource getResource()
Specified by:
getResource in interface CollectionAttribute

getStringValue

public abstract String getStringValue()
Description copied from interface: CollectionAttribute
Get the value of the attribute as a String.

Specified by:
getStringValue in interface CollectionAttribute
Returns:
a String representing the attribute value

shouldPersist

public abstract boolean shouldPersist(ServiceParameters params)
Description copied from interface: CollectionAttribute
Determines whether the attribute should be persisted.

Specified by:
shouldPersist in interface CollectionAttribute
Returns:

storeAttribute

public void storeAttribute(Persister persister)
Description copied from interface: CollectionAttribute
Stores the attribute using the persister. Not sure this should be here...

Specified by:
storeAttribute in interface CollectionAttribute

visit

public void visit(CollectionSetVisitor visitor)
Description copied from interface: CollectionAttribute
Visit this attribute

Specified by:
visit in interface CollectionAttribute


Copyright © 2009. All Rights Reserved.