public class AliasedResource extends SnmpCollectionResource
AliasedResource class.
RESOURCE_TYPE_IF, RESOURCE_TYPE_LATENCY, RESOURCE_TYPE_NODE
Constructor and Description |
---|
AliasedResource(ResourceType resourceType,
String domain,
IfInfo ifInfo,
String ifAliasComment,
String ifAlias)
Constructor for AliasedResource.
|
Modifier and Type | Method and Description |
---|---|
String |
getDomain()
getDomain
|
Collection<AttributeGroup> |
getGroups()
getGroups
|
IfInfo |
getIfInfo()
getIfInfo
|
String |
getInstance()
getInstance
|
String |
getInterfaceLabel()
getLabel
|
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
|
int |
getSnmpIfType()
getType
|
TimeKeeper |
getTimeKeeper()
Returns a not-null
TimeKeeper instance when this resource requires to use a special timestamp when updating RRDs/JRBs. |
String |
getUnmodifiedInstance()
Returns the unmodified instance string this
CollectionResource represents. |
boolean |
isScheduledForCollection()
isScheduledForCollection
|
boolean |
rescanNeeded()
rescanNeeded
|
boolean |
shouldPersist(ServiceParameters serviceParameters)
Determines whether the attribute should be persisted.
|
String |
toString()
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)
|
getCollectionAgent, getGroupType, getOwnerName, getResourceType, getStringAttributes, setAttributeValue
public AliasedResource(ResourceType resourceType, String domain, IfInfo ifInfo, String ifAliasComment, String ifAlias)
Constructor for AliasedResource.
resourceType
- a ResourceType
object.domain
- a String
object.ifInfo
- a IfInfo
object.ifAliasComment
- a String
object.ifAlias
- a String
object.public ResourcePath getPath()
ResourceIdentifier
RrdRepository
.ResourcePath
object.public String toString()
toString
public boolean rescanNeeded()
rescanNeeded
rescanNeeded
in interface CollectionResource
rescanNeeded
in class SnmpCollectionResource
public boolean isScheduledForCollection()
isScheduledForCollection
public boolean shouldPersist(ServiceParameters serviceParameters)
shouldPersist
in interface Persistable
shouldPersist
in class SnmpCollectionResource
serviceParameters
- a ServiceParameters
object.public int getSnmpIfType()
getType
getSnmpIfType
in class SnmpCollectionResource
public void visit(CollectionSetVisitor visitor)
visit
in interface CollectionVisitable
visit
in class SnmpCollectionResource
visitor
- a CollectionSetVisitor
object.public Collection<AttributeGroup> getGroups()
getGroups
getGroups
in class SnmpCollectionResource
Collection
object.public String getResourceTypeName()
getResourceTypeName
String
object.public String getUnmodifiedInstance()
CollectionResource
CollectionResource
represents.String
object.public ResourcePath getParent()
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
getTimeKeeper
in class SnmpCollectionResource
TimeKeeper
object or null to indicate that DefaultTimeKeeper
should be used.Copyright © 2021. All rights reserved.