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(String resourceId,
String title,
String[] dataSources,
String[] aggregateFunctions,
String[] colors,
String[] dataSourceTitles,
String[] styles,
long start,
long end)
getAdhocGraph
|
GraphDao |
getGraphDao()
getGraphDao
|
InputStream |
getPrefabGraph(String resourceId,
String report,
long start,
long end,
Integer width,
Integer height)
getPrefabGraph
|
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(String resourceId, String title, String[] dataSources, String[] aggregateFunctions, String[] colors, String[] dataSourceTitles, String[] styles, long start, long end)
getAdhocGraph
getAdhocGraph
in interface RrdGraphService
resourceId
- a String
object.title
- a String
object.dataSources
- an array of String
objects.aggregateFunctions
- an array of String
objects.colors
- an array of String
objects.dataSourceTitles
- an array of String
objects.styles
- an array of String
objects.start
- a long.end
- a long.InputStream
object.public InputStream returnErrorImage(String file)
returnErrorImage
file
- a String
object.InputStream
object.public InputStream getPrefabGraph(String resourceId, String report, long start, long end, Integer width, Integer height)
getPrefabGraph
getPrefabGraph
in interface RrdGraphService
resourceId
- a String
object.report
- a String
object.start
- a long.end
- a long.InputStream
object.protected 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.InitializingBean
public 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 © 2017. All rights reserved.