Package org.opennms.netmgt.collectd
Class AliasedAttribute
- java.lang.Object
-
- org.opennms.netmgt.collection.support.AbstractCollectionAttribute
-
- org.opennms.netmgt.collectd.SnmpAttribute
-
- org.opennms.netmgt.collectd.AliasedAttribute
-
- All Implemented Interfaces:
CollectionAttribute,CollectionVisitable,Persistable
public class AliasedAttribute extends SnmpAttribute
AliasedAttribute class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.collectd.SnmpAttribute
LOG
-
Fields inherited from class org.opennms.netmgt.collection.support.AbstractCollectionAttribute
m_attribType, m_resource
-
-
Constructor Summary
Constructors Constructor Description AliasedAttribute(CollectionResource resource, SnmpAttribute attr)Constructor for AliasedAttribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)SnmpValuegetValue()getValueinthashCode()hashCodebooleanshouldPersist(ServiceParameters params)Determines whether the attribute should be persisted.StringtoString()toString-
Methods inherited from class org.opennms.netmgt.collectd.SnmpAttribute
getMetricIdentifier, getNumericValue, getStringValue, storeAttribute
-
Methods inherited from class org.opennms.netmgt.collection.support.AbstractCollectionAttribute
getAttributeType, getName, getResource, getType, visit
-
-
-
-
Constructor Detail
-
AliasedAttribute
public AliasedAttribute(CollectionResource resource, SnmpAttribute attr)
Constructor for AliasedAttribute.
- Parameters:
resource- aCollectionResourceobject.attr- aSnmpAttributeobject.
-
-
Method Detail
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classSnmpAttribute
-
getValue
public SnmpValue getValue()
getValue
- Overrides:
getValuein classSnmpAttribute- Returns:
- a
SnmpValueobject.
-
hashCode
public int hashCode()
hashCode
- Overrides:
hashCodein classSnmpAttribute- Returns:
- a int.
-
shouldPersist
public boolean shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.- Specified by:
shouldPersistin interfacePersistable- Overrides:
shouldPersistin classAbstractCollectionAttribute- Parameters:
params- aServiceParametersobject.- Returns:
- a boolean.
-
toString
public String toString()
toString
- Overrides:
toStringin classSnmpAttribute- Returns:
- a
Stringobject.
-
-