public class LatencyCollectionResource extends Object implements CollectionResource
LatencyCollectionResource class.
RESOURCE_TYPE_IF, RESOURCE_TYPE_NODE| Constructor and Description |
|---|
LatencyCollectionResource(String serviceName,
String ipAddress)
Constructor for LatencyCollectionResource.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInstance()
getInstance
|
String |
getInterfaceLabel()
getLabel
|
String |
getIpAddress()
getIpAddress
|
String |
getOwnerName()
getOwnerName
|
String |
getParent()
Returns the name of the parent resource.
|
File |
getResourceDir(RrdRepository repository)
getResourceDir
|
String |
getResourceTypeName()
getResourceTypeName
|
String |
getServiceName()
getServiceName
|
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()
getInstance
getInstance in interface CollectionResourceString object.public String getInterfaceLabel()
getLabel
getInterfaceLabel in interface CollectionResourceString object.public String getResourceTypeName()
getResourceTypeName
getResourceTypeName in interface CollectionResourceString object.public boolean rescanNeeded()
rescanNeeded
rescanNeeded in interface CollectionResourcepublic boolean shouldPersist(ServiceParameters params)
shouldPersist in interface Persistableparams - a ServiceParameters object.public void visit(CollectionSetVisitor visitor)
visit in interface CollectionVisitablevisitor - a CollectionSetVisitor object.public String getOwnerName()
getOwnerName
getOwnerName in interface ResourceIdentifierString object.public File getResourceDir(RrdRepository repository)
getResourceDir
getResourceDir in interface ResourceIdentifierrepository - a RrdRepository object.File 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.Copyright © 2015. All rights reserved.