|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.collectd.SnmpCollectionResource
org.opennms.netmgt.collectd.NodeInfo
public final class NodeInfo
This class encapsulates all of the node-level data required by the SNMP data collector in order to successfully perform data collection for a scheduled primary SNMP interface.
| Constructor Summary | |
|---|---|
NodeInfo(NodeResourceType def,
CollectionAgent agent)
|
|
| Method Summary | |
|---|---|
protected SNMPCollectorEntry |
getEntry()
|
String |
getInstance()
Returns the name of the instance this CollectionResource represents. |
String |
getLabel()
Returns a unique label for each resource depending on resource type. |
File |
getResourceDir(RrdRepository repository)
|
String |
getResourceTypeName()
Returns a string which indicates what type of resource. |
int |
getType()
Returns something like an ifType; is (but not sure if it should be) -1 for non interface type collections, otherwise the SNMP type of the interface. |
void |
setEntry(SNMPCollectorEntry nodeEntry)
|
boolean |
shouldPersist(ServiceParameters params)
|
String |
toString()
|
| Methods inherited from class org.opennms.netmgt.collectd.SnmpCollectionResource |
|---|
getCollectionAgent, getGroups, getOwnerName, getResourceType, log, rescanNeeded, setAttributeValue, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NodeInfo(NodeResourceType def,
CollectionAgent agent)
| Method Detail |
|---|
public int getType()
CollectionResource
getType in interface CollectionResourcegetType in class SnmpCollectionResourcepublic File getResourceDir(RrdRepository repository)
getResourceDir in interface ResourceIdentifiergetResourceDir in class SnmpCollectionResourcepublic String toString()
toString in class Objectpublic void setEntry(SNMPCollectorEntry nodeEntry)
protected SNMPCollectorEntry getEntry()
public boolean shouldPersist(ServiceParameters params)
shouldPersist in interface CollectionResourceshouldPersist in class SnmpCollectionResourcepublic String getResourceTypeName()
CollectionResource
public String getInstance()
CollectionResource
public String getLabel()
CollectionResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||