org.opennms.netmgt.poller
Class LatencyCollectionAttribute

java.lang.Object
  extended by org.opennms.netmgt.poller.LatencyCollectionAttribute
All Implemented Interfaces:
CollectionAttribute

public class LatencyCollectionAttribute
extends Object
implements CollectionAttribute

LatencyCollectionAttribute class.

Version:
$Id: $
Author:
Alejandro Galue

Constructor Summary
LatencyCollectionAttribute(LatencyCollectionResource resource, String name, Double value)
          Constructor for LatencyCollectionAttribute.
 
Method Summary
 CollectionAttributeType getAttributeType()
          getAttributeType
 String getName()
          getName
 String getNumericValue()
          getNumericValue
 CollectionResource getResource()
          getResource
 String getStringValue()
          getStringValue
 String getType()
          getType
 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
 

Constructor Detail

LatencyCollectionAttribute

public LatencyCollectionAttribute(LatencyCollectionResource resource,
                                  String name,
                                  Double value)

Constructor for LatencyCollectionAttribute.

Parameters:
resource - a LatencyCollectionResource object.
name - a String object.
value - a Double object.
Method Detail

getAttributeType

public CollectionAttributeType getAttributeType()

getAttributeType

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

getName

public String getName()

getName

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

getNumericValue

public String getNumericValue()

getNumericValue

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

getResource

public CollectionResource getResource()

getResource

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

getStringValue

public String getStringValue()

getStringValue

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

getType

public String getType()

getType

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

shouldPersist

public 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 org.opennms.netmgt.collectd.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.