public class RrdGraphHelper extends Object
| Constructor and Description | 
|---|
RrdGraphHelper()
Default constructor for instantiating new objects 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getGraphNameFromQuery(String query)
Parses the name of the graph from the given query string. 
 | 
Map<String,String> | 
getGraphNameTitleMappingForResourceId(ResourceId resourceId)
Returns the graph entries name/title mapping for a given resourceId. 
 | 
Map<String,String> | 
getGraphResultsForResourceId(ResourceId resourceId)
Returns the graph entries for a given resourceId. 
 | 
Map<String,String> | 
getGraphTitleNameMappingForResourceId(ResourceId 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. 
 | 
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 Map<String,String> getGraphNameTitleMappingForResourceId(ResourceId resourceId)
resourceId - the resourceIdpublic Map<String,String> getGraphTitleNameMappingForResourceId(ResourceId resourceId)
resourceId - the resourceIdpublic Map<String,String> getGraphResultsForResourceId(ResourceId 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 static String getGraphNameFromQuery(String query)
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 © 2020. All rights reserved.