public class RrdGraphHelper extends Object
Constructor and Description |
---|
RrdGraphHelper()
Default constructor for instantiating new objects
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getGraphNameTitleMappingForResourceId(String resourceId)
Returns the graph entries name/title mapping for a given resourceId.
|
Map<String,String> |
getGraphResultsForResourceId(String resourceId)
Returns the graph entries for a given resourceId.
|
Map<String,String> |
getGraphTitleNameMappingForResourceId(String resourceId)
Returns the graph entries title/name mapping for a given resourceId.
|
List<OnmsNode> |
getNodesWithResources()
Returns a list of nodes with resources
|
Map<OnmsResourceType,List<OnmsResource>> |
getResourceTypeMapForNodeId(int nodeId)
Returns a map of resources for a given resourceType.
|
Map<OnmsResourceType,List<OnmsResource>> |
getResourceTypeMapForNodeId(String nodeId)
Returns a map of resources for a given resourceType.
|
String |
imageUrlForGraph(String query,
int width,
int height)
Creates the image url for a given graph parameter and width/height.
|
String |
imageUrlForGraph(String query,
int width,
int height,
int calendarField,
int calendarDiff)
Creates the image url for a given graph parameter and width/height.
|
void |
setGraphDao(GraphDao graphDao)
This method sets the graph dao.
|
void |
setNodeDao(NodeDao nodeDao)
This method sets the node dao.
|
void |
setResourceDao(ResourceDao resourceDao)
This method sets the resource dao.
|
void |
setTransactionOperations(org.springframework.transaction.support.TransactionOperations transactionOperations)
This method sets the
TransactionOperations instance. |
public RrdGraphHelper()
public String imageUrlForGraph(String query, int width, int height, int calendarField, int calendarDiff)
query
- the parameter combination for this report graphwidth
- the widthheight
- the heightcalendarField
- the calendar field to substract fromcalendarDiff
- the value to be substractedpublic String imageUrlForGraph(String query, int width, int height)
query
- the parameter combination for this report graphwidth
- the widthheight
- the heightpublic Map<String,String> getGraphNameTitleMappingForResourceId(String resourceId)
resourceId
- the resourceIdpublic Map<String,String> getGraphTitleNameMappingForResourceId(String resourceId)
resourceId
- the resourceIdpublic Map<String,String> getGraphResultsForResourceId(String resourceId)
resourceId
- the resourceIdpublic Map<OnmsResourceType,List<OnmsResource>> getResourceTypeMapForNodeId(int nodeId)
nodeId
- the nodeId to search for resourceTypespublic Map<OnmsResourceType,List<OnmsResource>> getResourceTypeMapForNodeId(String nodeId)
nodeId
- the nodeId to search for resourceTypespublic List<OnmsNode> getNodesWithResources()
public void setNodeDao(NodeDao nodeDao)
nodeDao
- the node dao to setpublic void setGraphDao(GraphDao graphDao)
graphDao
- the graph dao to setpublic void setResourceDao(ResourceDao resourceDao)
resourceDao
- the resource dao to setpublic void setTransactionOperations(org.springframework.transaction.support.TransactionOperations transactionOperations)
TransactionOperations
instance.transactionOperations
- the instance to be setCopyright © 2015. All rights reserved.