org.opennms.netmgt.collectd
Class AliasedAttribute
java.lang.Object
org.opennms.netmgt.collectd.AbstractCollectionAttribute
org.opennms.netmgt.collectd.SnmpAttribute
org.opennms.netmgt.collectd.AliasedAttribute
- All Implemented Interfaces:
- CollectionAttribute
public class AliasedAttribute
- extends SnmpAttribute
AliasedAttribute
public AliasedAttribute(CollectionResource resource,
SnmpAttribute attr)
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.