public interface CollectionResource extends ResourceIdentifier, CollectionVisitable, Persistable
CollectionResource interface.
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_TYPE_IF |
static String |
RESOURCE_TYPE_NODE |
| Modifier and Type | Method and Description |
|---|---|
String |
getInstance()
Returns the name of the instance this
CollectionResource represents. |
String |
getInterfaceLabel()
Returns a unique label for each resource depending on resource type.
|
String |
getParent()
Returns the name of the parent resource.
|
String |
getResourceTypeName()
Returns a string which indicates what type of resource.
|
TimeKeeper |
getTimeKeeper()
Returns a not-null
TimeKeeper instance when this resource requires to use a special timestamp when updating RRDs/JRBs. |
boolean |
rescanNeeded()
rescanNeeded
|
getOwnerName, getPathvisitshouldPersiststatic final String RESOURCE_TYPE_NODE
static final String RESOURCE_TYPE_IF
boolean rescanNeeded()
rescanNeeded
String getResourceTypeName()
String object.String getInstance()
CollectionResource represents. For node level resources, this will be null
to indicate the default instance. For interface level resources, some label unique to the node (ifIndex probably).
For Generic resources (e.g. the SNMP GenericIndexResource), this will be some identifying label, probably the index in the table.
This value is used by the StorageStrategy implementations to figure out the label for the resource which
is used in constructing its RRD directory.String object.String getInterfaceLabel()
String object.TimeKeeper getTimeKeeper()
TimeKeeper instance when this resource requires to use a special timestamp when updating RRDs/JRBs.
If the resource doesn't need a special TimeKeeper it should return null.TimeKeeper object or null to indicate that DefaultTimeKeeper should be used.Copyright © 2020. All rights reserved.