public class LatencyCollectionResource extends Object implements CollectionResource
LatencyCollectionResource class.
RESOURCE_TYPE_IF, RESOURCE_TYPE_LATENCY, RESOURCE_TYPE_NODE
Constructor and Description |
---|
LatencyCollectionResource(String serviceName,
String ipAddress,
String location)
Constructor for LatencyCollectionResource.
|
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()
getInstance
|
String |
getInterfaceLabel()
getLabel
|
String |
getIpAddress()
getIpAddress
|
String |
getOwnerName()
getOwnerName
|
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
|
String |
getServiceName()
getServiceName
|
TimeKeeper |
getTimeKeeper()
Returns a not-null
TimeKeeper instance when this resource requires to use a special timestamp when updating RRDs/JRBs. |
String |
getUnmodifiedInstance()
getUnmodifiedInstance
|
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 CollectionResource
String
object.public String getUnmodifiedInstance()
getUnmodifiedInstance
getUnmodifiedInstance
in interface CollectionResource
String
object.public String getInterfaceLabel()
getLabel
getInterfaceLabel
in interface CollectionResource
String
object.public String getResourceTypeName()
getResourceTypeName
getResourceTypeName
in interface CollectionResource
String
object.public boolean rescanNeeded()
rescanNeeded
rescanNeeded
in interface CollectionResource
public boolean shouldPersist(ServiceParameters params)
shouldPersist
in interface Persistable
params
- 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)
visit
in interface CollectionVisitable
visitor
- a CollectionSetVisitor
object.public String getOwnerName()
getOwnerName
getOwnerName
in interface ResourceIdentifier
String
object.public ResourcePath getPath()
ResourceIdentifier
RrdRepository
.getPath
in interface ResourceIdentifier
ResourcePath
object.public ResourcePath getParent()
CollectionResource
getParent
in interface CollectionResource
String
object.public TimeKeeper getTimeKeeper()
CollectionResource
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.getTimeKeeper
in interface CollectionResource
TimeKeeper
object or null to indicate that DefaultTimeKeeper
should be used.Copyright © 2021. All rights reserved.