|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.threshd.CollectionResourceWrapper
public class CollectionResourceWrapper
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 Summary | |
|---|---|
CollectionResourceWrapper(Date collectionTimestamp,
int nodeId,
String hostAddress,
String serviceName,
RrdRepository repository,
CollectionResource resource,
Map<String,CollectionAttribute> attributes)
Constructor for CollectionResourceWrapper. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public int getNodeId()
getNodeId
public String getHostAddress()
getHostAddress
String object.public String getServiceName()
getServiceName
String object.public RrdRepository getRepository()
getRepository
RrdRepository object.public String getLabel()
getLabel
String object.public void setLabel(String label)
setLabel
label - a String object.public String getInstance()
getInstance
String object.public String getResourceTypeName()
getResourceTypeName
String object.public String getIfLabel()
getIfLabel
String object.public String getIfIndex()
getIfIndex
String object.protected String getIfInfoValue(String attribute)
getIfInfoValue
attribute - a String object.
String object.public boolean isAnInterfaceResource()
isAnInterfaceResource
public boolean isValidInterfaceResource()
isValidInterfaceResource
public Double getAttributeValue(String ds)
getAttributeValue
ds - a String object.
Double object.public String getLabelValue(String ds)
getLabelValue
ds - a String object.
String object.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||