Package org.opennms.netmgt.collectd
Class NumericAttributeType
- java.lang.Object
-
- org.opennms.netmgt.collection.support.AbstractCollectionAttributeType
-
- org.opennms.netmgt.collectd.SnmpAttributeType
-
- org.opennms.netmgt.collectd.NumericAttributeType
-
- All Implemented Interfaces:
CollectionAttributeType
,NumericCollectionAttributeType
public class NumericAttributeType extends SnmpAttributeType implements NumericCollectionAttributeType
NumericAttributeType class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.collectd.SnmpAttributeType
m_mibObj
-
-
Constructor Summary
Constructors Constructor Description NumericAttributeType(ResourceType resourceType, java.lang.String collectionName, MibObject mibObj, AttributeGroupType groupType)
Constructor for NumericAttributeType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMaxval()
java.lang.String
getMinval()
AttributeType
getType()
The type of metric that the attribute represents.static boolean
isNumericType(java.lang.String rawType)
isNumericTypevoid
storeAttribute(CollectionAttribute attribute, Persister persister)
storeAttributestatic boolean
supportsType(java.lang.String rawType)
-
Methods inherited from class org.opennms.netmgt.collectd.SnmpAttributeType
create, equals, getAlias, getCollectionName, getCollectionTrackers, getGroupIfType, getGroupName, getInstance, getName, getOid, getResourceType, hashCode, matches, storeResult, toString
-
Methods inherited from class org.opennms.netmgt.collection.support.AbstractCollectionAttributeType
getGroupType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.collection.api.CollectionAttributeType
equals, getGroupType, getName, hashCode
-
-
-
-
Constructor Detail
-
NumericAttributeType
public NumericAttributeType(ResourceType resourceType, java.lang.String collectionName, MibObject mibObj, AttributeGroupType groupType)
Constructor for NumericAttributeType.
- Parameters:
resourceType
- aResourceType
object.collectionName
- aString
object.mibObj
- aMibObject
object.groupType
- aAttributeGroupType
object.
-
-
Method Detail
-
isNumericType
public static boolean isNumericType(java.lang.String rawType)
isNumericType
- Parameters:
rawType
- aString
object.- Returns:
- a boolean.
-
supportsType
public static boolean supportsType(java.lang.String rawType)
-
getType
public AttributeType getType()
Description copied from interface:CollectionAttributeType
The type of metric that the attribute represents.
- Specified by:
getType
in interfaceCollectionAttributeType
- Returns:
- a
AttributeType
object.
-
getMaxval
public java.lang.String getMaxval()
- Specified by:
getMaxval
in interfaceNumericCollectionAttributeType
-
getMinval
public java.lang.String getMinval()
- Specified by:
getMinval
in interfaceNumericCollectionAttributeType
-
storeAttribute
public void storeAttribute(CollectionAttribute attribute, Persister persister)
storeAttribute
- Specified by:
storeAttribute
in interfaceCollectionAttributeType
- Specified by:
storeAttribute
in classSnmpAttributeType
- Parameters:
attribute
- aCollectionAttribute
object.persister
- aPersister
object.
-
-