|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.collectd.AbstractCollectionResource
public abstract class AbstractCollectionResource
A base (partial) implementation of CollectionResource, implementing common features (to reduce repeated code) Typically used by the non-SNMP collectors (SNMP has it's own set of classes for this). Provides a basic group of ag Provides support, via addAttribute, getGroup, and getGroups, for basic "groups" of attributes. Also provides a sample "visit" implementation based on those groups, although this may well be overridden by subclasses
| Field Summary | |
|---|---|
protected CollectionAgent |
m_agent
|
| Constructor Summary | |
|---|---|
protected |
AbstractCollectionResource(CollectionAgent agent)
Constructor for AbstractCollectionResource. |
| Method Summary | |
|---|---|
protected void |
addAttribute(CollectionAttribute attr)
Adds the given attribute into the collection for this resource |
protected AttributeGroup |
getGroup(AttributeGroupType groupType)
Finds, or creates, and returns the AttributeGroup for the given group Type |
String |
getLabel()
getLabel |
String |
getOwnerName()
getOwnerName |
File |
getResourceDir(RrdRepository repository)
getResourceDir |
abstract int |
getType()
getType |
abstract boolean |
rescanNeeded()
rescanNeeded |
abstract boolean |
shouldPersist(ServiceParameters params)
shouldPersist |
void |
visit(CollectionSetVisitor visitor)
visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opennms.netmgt.collectd.CollectionResource |
|---|
getInstance, getResourceTypeName |
| Field Detail |
|---|
protected CollectionAgent m_agent
| Constructor Detail |
|---|
protected AbstractCollectionResource(CollectionAgent agent)
Constructor for AbstractCollectionResource.
agent - a CollectionAgent object.| Method Detail |
|---|
public String getOwnerName()
getOwnerName
getOwnerName in interface ResourceIdentifierString object.public File getResourceDir(RrdRepository repository)
getResourceDir
getResourceDir in interface ResourceIdentifierrepository - a RrdRepository object.
File object.protected void addAttribute(CollectionAttribute attr)
attr - The Attribute to addprotected AttributeGroup getGroup(AttributeGroupType groupType)
groupType - a AttributeGroupType object.
AttributeGroup object.public void visit(CollectionSetVisitor visitor)
visit
visit in interface CollectionResourcevisitor - a CollectionSetVisitor object.public abstract int getType()
getType
getType in interface CollectionResourcepublic abstract boolean rescanNeeded()
rescanNeeded
rescanNeeded in interface CollectionResourcepublic abstract boolean shouldPersist(ServiceParameters params)
shouldPersist
shouldPersist in interface CollectionResourceparams - a ServiceParameters object.
public String getLabel()
getLabel
getLabel in interface CollectionResourceString object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||