org.opennms.netmgt.collectd
Class AbstractCollectionAttribute

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

public abstract class AbstractCollectionAttribute
extends Object
implements CollectionAttribute

Abstract AbstractCollectionAttribute class.

Version:
$Id: $
Author:
ranger

Constructor Summary
AbstractCollectionAttribute()
           
 
Method Summary
abstract  CollectionAttributeType getAttributeType()
          getAttributeType
abstract  String getName()
          getName
abstract  String getNumericValue()
          getNumericValue
abstract  CollectionResource getResource()
          getResource
abstract  String getStringValue()
          getStringValue
protected  ThreadCategory log()
          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 ThreadCategory log()

log

Returns:
a ThreadCategory object.

getAttributeType

public abstract CollectionAttributeType getAttributeType()

getAttributeType

Specified by:
getAttributeType in interface CollectionAttribute
Returns:
a CollectionAttributeType object.

getName

public abstract String getName()

getName

Specified by:
getName in interface CollectionAttribute
Returns:
a String object.

getNumericValue

public abstract String getNumericValue()

getNumericValue

Specified by:
getNumericValue in interface CollectionAttribute
Returns:
a String object.

getResource

public abstract CollectionResource getResource()

getResource

Specified by:
getResource in interface CollectionAttribute
Returns:
a CollectionResource object.

getStringValue

public abstract String getStringValue()

getStringValue

Specified by:
getStringValue in interface CollectionAttribute
Returns:
a String object.

shouldPersist

public abstract boolean shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.

Specified by:
shouldPersist in interface CollectionAttribute
Parameters:
params - a ServiceParameters object.
Returns:
a boolean.

storeAttribute

public void storeAttribute(Persister persister)
Stores the attribute using the persister. Not sure this should be here...

Specified by:
storeAttribute in interface CollectionAttribute
Parameters:
persister - a Persister object.

visit

public void visit(CollectionSetVisitor visitor)
Visit this attribute

Specified by:
visit in interface CollectionAttribute
Parameters:
visitor - a CollectionSetVisitor object.


Copyright © 2011. All Rights Reserved.