public class CollectionResourceWrapper extends Object
CollectionResourceWrapper class.
Wraps a CollectionResource with some methods and caching for the efficient application of thresholds (without pulling thresholding code into CollectionResource itself) A fresh instance should be created for each collection cycle (assumptions are made based on that premise)Constructor and Description |
---|
CollectionResourceWrapper(Date collectionTimestamp,
int nodeId,
String hostAddress,
String serviceName,
RrdRepository repository,
CollectionResource resource,
Map<String,CollectionAttribute> attributes)
Constructor for CollectionResourceWrapper.
|
Modifier and Type | Method and Description |
---|---|
Double |
getAttributeValue(String ds)
getAttributeValue
|
String |
getHostAddress()
getHostAddress
|
String |
getIfIndex()
getIfIndex
|
protected String |
getIfInfoValue(String attribute)
getIfInfoValue
|
String |
getIfLabel()
getIfLabel
|
String |
getInstance()
getInstance
|
String |
getLabel()
getLabel
|
String |
getLabelValue(String ds)
getLabelValue
|
int |
getNodeId()
getNodeId
|
RrdRepository |
getRepository()
getRepository
|
String |
getResourceTypeName()
getResourceTypeName
|
String |
getServiceName()
getServiceName
|
boolean |
isAnInterfaceResource()
isAnInterfaceResource
|
boolean |
isValidInterfaceResource()
isValidInterfaceResource
|
void |
setLabel(String label)
setLabel
|
String |
toString() |
public CollectionResourceWrapper(Date collectionTimestamp, int nodeId, String hostAddress, String serviceName, RrdRepository repository, CollectionResource resource, Map<String,CollectionAttribute> attributes)
Constructor for CollectionResourceWrapper.
interval
- a long.nodeId
- a int.hostAddress
- a String
object.serviceName
- a String
object.repository
- a RrdRepository
object.resource
- a CollectionResource
object.attributes
- a Map
object.public int getNodeId()
getNodeId
public RrdRepository getRepository()
getRepository
RrdRepository
object.public String getResourceTypeName()
getResourceTypeName
String
object.public boolean isAnInterfaceResource()
isAnInterfaceResource
public boolean isValidInterfaceResource()
isValidInterfaceResource
Copyright © 2015. All Rights Reserved.