|
|||||||||
| 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.IfInfo
public final class IfInfo
This class encapsulates all the information required by the SNMP collector in order to perform data collection for an individual interface and store that data in an appropriately named RRD file.
| Constructor Summary | |
|---|---|
IfInfo(ResourceType def,
CollectionAgent agent,
SnmpIfData snmpIfData)
|
|
| Method Summary | |
|---|---|
protected SNMPCollectorEntry |
getEntry()
|
int |
getIndex()
|
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. |
boolean |
isCollectionEnabled()
|
void |
setEntry(SNMPCollectorEntry ifEntry)
|
void |
setIfAlias(String ifAlias)
|
boolean |
shouldPersist(ServiceParameters serviceParameters)
|
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 IfInfo(ResourceType def,
CollectionAgent agent,
SnmpIfData snmpIfData)
| Method Detail |
|---|
public int getIndex()
public int getType()
CollectionResource
getType in interface CollectionResourcegetType in class SnmpCollectionResourcepublic String getLabel()
CollectionResource
public void setIfAlias(String ifAlias)
public boolean isCollectionEnabled()
public void setEntry(SNMPCollectorEntry ifEntry)
protected SNMPCollectorEntry getEntry()
public File getResourceDir(RrdRepository repository)
getResourceDir in interface ResourceIdentifiergetResourceDir in class SnmpCollectionResourcepublic String toString()
toString in class Objectpublic boolean shouldPersist(ServiceParameters serviceParameters)
shouldPersist in interface CollectionResourceshouldPersist in class SnmpCollectionResourcepublic String getResourceTypeName()
CollectionResource
public String getInstance()
CollectionResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||