public class GenericIndexResource extends SnmpCollectionResource
GenericIndexResource class.
RESOURCE_TYPE_IF, RESOURCE_TYPE_NODE
Constructor and Description |
---|
GenericIndexResource(ResourceType def,
String name,
SnmpInstId inst)
Constructor for GenericIndexResource.
|
Modifier and Type | Method and Description |
---|---|
String |
getInstance()
getInstance
|
String |
getInterfaceLabel()
getLabel
|
String |
getParent()
Returns the name of the parent resource.
|
File |
getResourceDir(RrdRepository repository)
getResourceDir
|
String |
getResourceTypeName()
getResourceTypeName
|
int |
getSnmpIfType()
Returns ifType; is (but not sure if it should be) -1 for non interface type collections, otherwise
the SNMP type of the interface.
|
boolean |
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.
|
String |
toString()
toString
|
getCollectionAgent, getGroups, getOwnerName, getResourceType, getTimeKeeper, rescanNeeded, setAttributeValue, visit
public GenericIndexResource(ResourceType def, String name, SnmpInstId inst)
Constructor for GenericIndexResource.
def
- a ResourceType
object.name
- a String
object.inst
- a SnmpInstId
object.public File getResourceDir(RrdRepository repository)
getResourceDir
getResourceDir
in interface ResourceIdentifier
getResourceDir
in class SnmpCollectionResource
repository
- a RrdRepository
object.File
object.public String toString()
toString
public int getSnmpIfType()
getSnmpIfType
in class SnmpCollectionResource
public boolean shouldPersist(ServiceParameters params)
shouldPersist
in interface Persistable
shouldPersist
in class SnmpCollectionResource
params
- a ServiceParameters
object.public String getResourceTypeName()
getResourceTypeName
String
object.public String getParent()
CollectionResource
String
object.Copyright © 2015. All rights reserved.