|
||||||||||
| 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)
Constructor for IfInfo. |
|
| Method Summary | |
|---|---|
Map<String,String> |
getAttributesMap()
getAttributesMap |
protected SNMPCollectorEntry |
getEntry()
getEntry |
int |
getIndex()
getIndex |
String |
getInstance()
getInstance |
String |
getLabel()
getLabel |
int |
getNodeId()
|
File |
getResourceDir(RrdRepository repository)
getResourceDir |
String |
getResourceTypeName()
getResourceTypeName |
int |
getType()
getType |
boolean |
isCollectionEnabled()
isCollectionEnabled |
boolean |
isScheduledForCollection()
|
void |
setEntry(SNMPCollectorEntry ifEntry)
setEntry |
void |
setIfAlias(String ifAlias)
setIfAlias |
boolean |
shouldPersist(ServiceParameters serviceParameters)
shouldPersist |
String |
toString()
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)
Constructor for IfInfo.
def - a ResourceType object.agent - a CollectionAgent object.snmpIfData - a SnmpIfData object.| Method Detail |
|---|
public int getNodeId()
public int getIndex()
getIndex
public int getType()
getType
getType in interface CollectionResourcegetType in class SnmpCollectionResourcepublic String getLabel()
getLabel
String object.public void setIfAlias(String ifAlias)
setIfAlias
ifAlias - a String object.public boolean isCollectionEnabled()
isCollectionEnabled
public void setEntry(SNMPCollectorEntry ifEntry)
setEntry
ifEntry - a SNMPCollectorEntry object.protected SNMPCollectorEntry getEntry()
getEntry
SNMPCollectorEntry object.public Map<String,String> getAttributesMap()
getAttributesMap
Map object.public boolean isScheduledForCollection()
public File getResourceDir(RrdRepository repository)
getResourceDir
getResourceDir in interface ResourceIdentifiergetResourceDir in class SnmpCollectionResourcerepository - a RrdRepository object.
File object.public String toString()
toString
toString in class ObjectString object.public boolean shouldPersist(ServiceParameters serviceParameters)
shouldPersist
shouldPersist in interface CollectionResourceshouldPersist in class SnmpCollectionResourceserviceParameters - a ServiceParameters object.
public String getResourceTypeName()
getResourceTypeName
String object.public String getInstance()
getInstance
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||