org.opennms.netmgt.collectd
Class AliasedAttribute

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

public class AliasedAttribute
extends SnmpAttribute


Constructor Summary
AliasedAttribute(CollectionResource resource, SnmpAttribute attr)
           
 
Method Summary
 boolean equals(Object obj)
           
 SnmpAttributeType getAttributeType()
          Return the attribute type for this attribute.
 String getName()
          Gets the name of the attribute
 String getType()
          Returns type of value (typically one of "counter", "gauge", "timeticks", "integer", "octetstring" - see NumericAttributeType)
 SnmpValue getValue()
           
 int hashCode()
           
 Category log()
           
 boolean shouldPersist(ServiceParameters params)
          Determines whether the attribute should be persisted.
 String toString()
           
 
Methods inherited from class org.opennms.netmgt.collectd.SnmpAttribute
getNumericValue, getResource, getStringValue, storeAttribute, visit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AliasedAttribute

public AliasedAttribute(CollectionResource resource,
                        SnmpAttribute attr)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class SnmpAttribute

getAttributeType

public SnmpAttributeType 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
Overrides:
getAttributeType in class SnmpAttribute
Returns:

getName

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

Specified by:
getName in interface CollectionAttribute
Overrides:
getName in class SnmpAttribute
Returns:
a name

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
Overrides:
getType in class SnmpAttribute
Returns:
type of value stored in this attribute (SNMP semantics)

getValue

public SnmpValue getValue()
Overrides:
getValue in class SnmpAttribute

hashCode

public int hashCode()
Overrides:
hashCode in class SnmpAttribute

log

public Category log()
Overrides:
log in class SnmpAttribute

shouldPersist

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

Specified by:
shouldPersist in interface CollectionAttribute
Overrides:
shouldPersist in class SnmpAttribute
Returns:

toString

public String toString()
Overrides:
toString in class SnmpAttribute


Copyright © 2009. All Rights Reserved.