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

AliasedAttribute class.

Version:
$Id: $
Author:
ranger

Constructor Summary
AliasedAttribute(CollectionResource resource, SnmpAttribute attr)
          Constructor for AliasedAttribute.
 
Method Summary
 boolean equals(Object obj)
          
 SnmpAttributeType getAttributeType()
          getAttributeType
 String getName()
          getName
 String getType()
          getType
 SnmpValue getValue()
          getValue
 int hashCode()
          hashCode
 ThreadCategory log()
          log
 boolean shouldPersist(ServiceParameters params)
          Determines whether the attribute should be persisted.
 String toString()
          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)

Constructor for AliasedAttribute.

Parameters:
resource - a CollectionResource object.
attr - a SnmpAttribute object.
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class SnmpAttribute

getAttributeType

public SnmpAttributeType getAttributeType()

getAttributeType

Specified by:
getAttributeType in interface CollectionAttribute
Overrides:
getAttributeType in class SnmpAttribute
Returns:
a SnmpAttributeType object.

getName

public String getName()

getName

Specified by:
getName in interface CollectionAttribute
Overrides:
getName in class SnmpAttribute
Returns:
a String object.

getType

public String getType()

getType

Specified by:
getType in interface CollectionAttribute
Overrides:
getType in class SnmpAttribute
Returns:
a String object.

getValue

public SnmpValue getValue()

getValue

Overrides:
getValue in class SnmpAttribute
Returns:
a SnmpValue object.

hashCode

public int hashCode()

hashCode

Overrides:
hashCode in class SnmpAttribute
Returns:
a int.

log

public ThreadCategory log()

log

Overrides:
log in class SnmpAttribute
Returns:
a ThreadCategory object.

shouldPersist

public boolean shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.

Specified by:
shouldPersist in interface CollectionAttribute
Overrides:
shouldPersist in class SnmpAttribute
Parameters:
params - a ServiceParameters object.
Returns:
a boolean.

toString

public String toString()

toString

Overrides:
toString in class SnmpAttribute
Returns:
a String object.


Copyright © 2011. All Rights Reserved.