public class DistributedLatencyCollectionResource extends Object implements CollectionResource
RESOURCE_TYPE_IF, RESOURCE_TYPE_NODE| Constructor and Description |
|---|
DistributedLatencyCollectionResource(String locationMonitorId,
String ipAddress) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(CollectionAttribute attr)
Adds the given attribute into the collection for this resource
|
AttributeGroup |
getGroup(AttributeGroupType groupType)
Finds, or creates, and returns the AttributeGroup for the given group Type
|
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 |
getIpAddress() |
String |
getLocationMonitorId() |
String |
getOwnerName()
getOwnerName
|
String |
getParent()
Returns the name of the parent resource.
|
Path |
getPath()
Retrieves path for the resource, relative to the root of the
associated
RrdRepository. |
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
|
boolean |
shouldPersist(ServiceParameters params)
Determines whether the attribute should be persisted.
|
String |
toString() |
void |
visit(CollectionSetVisitor visitor)
Provide a way to visit all the values in the CollectionSet, for any appropriate purposes (persisting, thresholding, or others)
The expectation is that calling this method will ultimately call visitResource, visitGroup and visitAttribute (as appropriate)
|
public String getInstance()
CollectionResourceCollectionResource 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.getInstance in interface CollectionResourceString object.public String getInterfaceLabel()
CollectionResourcegetInterfaceLabel in interface CollectionResourceString object.public String getResourceTypeName()
CollectionResourcegetResourceTypeName in interface CollectionResourceString object.public boolean rescanNeeded()
CollectionResourcerescanNeeded
rescanNeeded in interface CollectionResourcepublic boolean shouldPersist(ServiceParameters params)
PersistableshouldPersist in interface Persistableparams - a ServiceParameters object.public void addAttribute(CollectionAttribute attr)
attr - The Attribute to addpublic final AttributeGroup getGroup(AttributeGroupType groupType)
groupType - a AttributeGroupType object.AttributeGroup object.public void visit(CollectionSetVisitor visitor)
CollectionVisitablevisit in interface CollectionVisitablevisitor - a CollectionSetVisitor object.public String getOwnerName()
ResourceIdentifiergetOwnerName
getOwnerName in interface ResourceIdentifierString object.public Path getPath()
ResourceIdentifierRrdRepository.getPath in interface ResourceIdentifierPath object.public String getParent()
CollectionResourcegetParent in interface CollectionResourceString object.public TimeKeeper getTimeKeeper()
CollectionResourceTimeKeeper 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.getTimeKeeper in interface CollectionResourceTimeKeeper object or null to indicate that DefaultTimeKeeper should be used.public String getLocationMonitorId()
public String getIpAddress()
Copyright © 2020. All rights reserved.