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

Author:
Alejandro Galue

Constructor Summary
LatencyCollectionAttribute(LatencyCollectionResource resource, String name, Double value)
           
 
Method Summary
 CollectionAttributeType getAttributeType()
          Return the attribute type for this attribute.
 String getName()
          Gets the name of the attribute
 String getNumericValue()
          Get the numeric value of the attribute, as a String.
 CollectionResource getResource()
           
 String getStringValue()
          Get the value of the attribute as a String.
 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)
          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)
Method Detail

getAttributeType

public 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 String getName()
Description copied from interface: CollectionAttribute
Gets the name of the attribute

Specified by:
getName in interface CollectionAttribute
Returns:
a name

getNumericValue

public 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 CollectionResource getResource()
Specified by:
getResource in interface CollectionAttribute

getStringValue

public 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

getType

public String getType()
Description copied from interface: CollectionAttribute
Returns type of value (typically one of "counter", "gauge", "timeticks", "integer", "octetstring" - see NumericAttributeType)

Specified by:
getType in interface CollectionAttribute
Returns:
type of value stored in this attribute (SNMP semantics)

shouldPersist

public 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.