public class DefaultRrdGraphService extends Object implements RrdGraphService, org.springframework.beans.factory.InitializingBean
DefaultRrdGraphService class.
| Constructor and Description |
|---|
DefaultRrdGraphService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
protected String |
createAdHocCommand(AdhocGraphType adhocType,
OnmsResource resource,
long start,
long end,
String graphtitle,
String[] dsNames,
String[] dsAggregFxns,
String[] colors,
String[] dsTitles,
String[] dsStyles)
createAdHocCommand
|
protected String |
createPrefabCommand(Graph graph,
String commandPrefix,
String reportName,
Integer width,
Integer height)
createPrefabCommand
|
InputStream |
getAdhocGraph(ResourceId resourceId,
String title,
String[] dataSources,
String[] aggregateFunctions,
String[] colors,
String[] dataSourceTitles,
String[] styles,
long start,
long end) |
GraphDao |
getGraphDao()
getGraphDao
|
InputStream |
getPrefabGraph(ResourceId resourceId,
String report,
long start,
long end,
Integer width,
Integer height) |
ResourceDao |
getResourceDao()
getResourceDao
|
RrdDao |
getRrdDao()
getRrdDao
|
InputStream |
returnErrorImage(String file)
returnErrorImage
|
void |
setGraphDao(GraphDao graphDao)
setGraphDao
|
void |
setResourceDao(ResourceDao resourceDao)
setResourceDao
|
void |
setRrdDao(RrdDao rrdDao)
setRrdDao
|
public InputStream getAdhocGraph(ResourceId resourceId, String title, String[] dataSources, String[] aggregateFunctions, String[] colors, String[] dataSourceTitles, String[] styles, long start, long end)
getAdhocGraph in interface RrdGraphServicepublic InputStream returnErrorImage(String file)
returnErrorImage
file - a String object.InputStream object.public InputStream getPrefabGraph(ResourceId resourceId, String report, long start, long end, Integer width, Integer height)
getPrefabGraph in interface RrdGraphServiceprotected String createAdHocCommand(AdhocGraphType adhocType, OnmsResource resource, long start, long end, String graphtitle, String[] dsNames, String[] dsAggregFxns, String[] colors, String[] dsTitles, String[] dsStyles)
createAdHocCommand
adhocType - a AdhocGraphType object.resource - a OnmsResource object.start - a long.end - a long.graphtitle - a String object.dsNames - an array of String objects.dsAggregFxns - an array of String objects.colors - an array of String objects.dsTitles - an array of String objects.dsStyles - an array of String objects.String object.protected String createPrefabCommand(Graph graph, String commandPrefix, String reportName, Integer width, Integer height)
createPrefabCommand
public void afterPropertiesSet()
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic ResourceDao getResourceDao()
getResourceDao
ResourceDao object.public void setResourceDao(ResourceDao resourceDao)
setResourceDao
resourceDao - a ResourceDao object.public void setGraphDao(GraphDao graphDao)
setGraphDao
graphDao - a GraphDao object.Copyright © 2022. All rights reserved.