public final class IfInfo extends SnmpCollectionResource
RESOURCE_TYPE_IF, RESOURCE_TYPE_LATENCY, RESOURCE_TYPE_NODE
Constructor and Description |
---|
IfInfo(ResourceType def,
CollectionAgent agent,
SnmpIfData snmpIfData)
Constructor for IfInfo.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributesMap()
getAttributesMap
|
protected SNMPCollectorEntry |
getEntry()
getEntry
|
int |
getIndex()
getIndex
|
String |
getInstance()
getInstance
|
String |
getInterfaceLabel()
getLabel
|
int |
getNodeId() |
ResourcePath |
getParent()
Returns the name of the parent resource.
|
ResourcePath |
getPath()
Retrieves path for the resource, relative to the root of the
associated
RrdRepository . |
String |
getResourceTypeName()
getResourceTypeName
|
int |
getSnmpIfType()
getType
|
String |
getUnmodifiedInstance()
getUnmodifiedInstance
|
boolean |
isCollectionEnabled()
isCollectionEnabled
|
boolean |
isScheduledForCollection() |
void |
setEntry(SNMPCollectorEntry ifEntry)
setEntry
|
void |
setIfAlias(String ifAlias)
setIfAlias
|
boolean |
shouldPersist(ServiceParameters serviceParameters)
Determines whether the attribute should be persisted.
|
String |
toString()
toString
|
getCollectionAgent, getGroups, getGroupType, getOwnerName, getResourceType, getStringAttributes, getTimeKeeper, rescanNeeded, setAttributeValue, visit
public IfInfo(ResourceType def, CollectionAgent agent, SnmpIfData snmpIfData)
Constructor for IfInfo.
def
- a ResourceType
object.agent
- a CollectionAgent
object.snmpIfData
- a SnmpIfData
object.public int getNodeId()
public int getIndex()
getIndex
public int getSnmpIfType()
getType
getSnmpIfType
in class SnmpCollectionResource
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 ResourcePath getPath()
ResourceIdentifier
RrdRepository
.ResourcePath
object.public String toString()
toString
public boolean shouldPersist(ServiceParameters serviceParameters)
shouldPersist
in interface Persistable
shouldPersist
in class SnmpCollectionResource
serviceParameters
- a ServiceParameters
object.public String getResourceTypeName()
getResourceTypeName
String
object.public String getUnmodifiedInstance()
getUnmodifiedInstance
String
object.public ResourcePath getParent()
CollectionResource
String
object.Copyright © 2021. All rights reserved.