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 boolean
equals(java.lang.Object obj)
SnmpValue
getValue()
getValueint
hashCode()
hashCodeboolean
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.java.lang.String
toString()
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
- aCollectionResource
object.attr
- aSnmpAttribute
object.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSnmpAttribute
-
getValue
public SnmpValue getValue()
getValue
- Overrides:
getValue
in classSnmpAttribute
- Returns:
- a
SnmpValue
object.
-
hashCode
public int hashCode()
hashCode
- Overrides:
hashCode
in classSnmpAttribute
- Returns:
- a int.
-
shouldPersist
public boolean shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.- Specified by:
shouldPersist
in interfacePersistable
- Overrides:
shouldPersist
in classAbstractCollectionAttribute
- Parameters:
params
- aServiceParameters
object.- Returns:
- a boolean.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classSnmpAttribute
- Returns:
- a
String
object.
-
-