public class AliasedResource extends SnmpCollectionResource
AliasedResource class.
RESOURCE_TYPE_IF, 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
|
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()
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. |
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, setAttributeValuepublic 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 Path getPath()
ResourceIdentifierRrdRepository.Path object.public String toString()
toString
public boolean rescanNeeded()
rescanNeeded
rescanNeeded in interface CollectionResourcerescanNeeded in class SnmpCollectionResourcepublic boolean isScheduledForCollection()
isScheduledForCollection
public boolean shouldPersist(ServiceParameters serviceParameters)
shouldPersist in interface PersistableshouldPersist in class SnmpCollectionResourceserviceParameters - a ServiceParameters object.public int getSnmpIfType()
getType
getSnmpIfType in class SnmpCollectionResourcepublic void visit(CollectionSetVisitor visitor)
visit in interface CollectionVisitablevisit in class SnmpCollectionResourcevisitor - a CollectionSetVisitor object.public Collection<AttributeGroup> getGroups()
getGroups
getGroups in class SnmpCollectionResourceCollection object.public String getResourceTypeName()
getResourceTypeName
String object.public String getParent()
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 CollectionResourcegetTimeKeeper in class SnmpCollectionResourceTimeKeeper object or null to indicate that DefaultTimeKeeper should be used.Copyright © 2020. All rights reserved.