org.opennms.netmgt.collectd
Class AttributeType
java.lang.Object
org.opennms.netmgt.collectd.AttributeType
- All Implemented Interfaces:
- AttributeDefinition
- Direct Known Subclasses:
- NumericAttributeType, StringAttributeType
public abstract class AttributeType
- extends java.lang.Object
- implements AttributeDefinition
Represents an OID to be collected (it might be specific or an indexed object).
Also specific to a collection (e.g.: "default"), resource type (e.g.: node or
interface), and attribute group (data collection group name, e.g.: "mib2-interfaces").
This is extended to create concreate classes that represent specific types of data
to be stored such as numeric data ((NumericAttributeType)) or string data
((StringAttributeType)).
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AttributeType
protected AttributeType(ResourceType resourceType,
java.lang.String collectionName,
org.opennms.netmgt.config.MibObject mibObj,
AttributeGroupType groupType)
getCollectionName
protected java.lang.String getCollectionName()
getCollectionTrackers
public static java.util.List getCollectionTrackers(java.util.Collection objList)
create
public static AttributeType create(ResourceType resourceType,
java.lang.String collectionName,
org.opennms.netmgt.config.MibObject mibObj,
AttributeGroupType groupType)
getGroupType
public AttributeGroupType getGroupType()
getGroupName
public java.lang.String getGroupName()
getAlias
public java.lang.String getAlias()
getOid
public java.lang.String getOid()
getInstance
public java.lang.String getInstance()
getType
public java.lang.String getType()
- Specified by:
getType in interface AttributeDefinition
getName
public java.lang.String getName()
- Specified by:
getName in interface AttributeDefinition
storeAttribute
protected abstract void storeAttribute(Attribute attribute,
Persister persister)
storeResult
public void storeResult(CollectionSet collectionSet,
SNMPCollectorEntry entry,
org.opennms.netmgt.snmp.SnmpObjId base,
org.opennms.netmgt.snmp.SnmpInstId inst,
org.opennms.netmgt.snmp.SnmpValue val)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals in interface AttributeDefinition- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface AttributeDefinition- Overrides:
hashCode in class java.lang.Object
log
public org.apache.log4j.Category log()
getGroupIfType
public java.lang.String getGroupIfType()
matches
public boolean matches(org.opennms.netmgt.snmp.SnmpObjId base,
org.opennms.netmgt.snmp.SnmpInstId inst)
Copyright © 2007. All Rights Reserved.