org.opennms.web.svclayer.support
Class DefaultRrdGraphService
java.lang.Object
org.opennms.web.svclayer.support.DefaultRrdGraphService
- All Implemented Interfaces:
- RrdGraphService, org.springframework.beans.factory.InitializingBean
public class DefaultRrdGraphService
- extends Object
- implements RrdGraphService, org.springframework.beans.factory.InitializingBean
- Author:
- DJ Gregor, Craig Miskell
|
Method Summary |
void |
afterPropertiesSet()
|
protected String |
createAdHocCommand(AdhocGraphType adhocType,
OnmsResource resource,
long start,
long end,
String graphtitle,
String[] dsNames,
String[] dsAggregFxns,
String[] colors,
String[] dsTitles,
String[] dsStyles)
|
protected String |
createPrefabCommand(Graph graph,
String commandPrefix,
File workDir,
String reportName)
|
InputStream |
getAdhocGraph(String resourceId,
String title,
String[] dataSources,
String[] aggregateFunctions,
String[] colors,
String[] dataSourceTitles,
String[] styles,
long start,
long end)
|
GraphDao |
getGraphDao()
|
InputStream |
getPrefabGraph(String resourceId,
String report,
long start,
long end)
|
ResourceDao |
getResourceDao()
|
RrdDao |
getRrdDao()
|
InputStream |
returnErrorImage(String file)
|
void |
setGraphDao(GraphDao graphDao)
|
void |
setResourceDao(ResourceDao resourceDao)
|
void |
setRrdDao(RrdDao rrdDao)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRrdGraphService
public DefaultRrdGraphService()
getAdhocGraph
public InputStream getAdhocGraph(String resourceId,
String title,
String[] dataSources,
String[] aggregateFunctions,
String[] colors,
String[] dataSourceTitles,
String[] styles,
long start,
long end)
- Specified by:
getAdhocGraph in interface RrdGraphService
returnErrorImage
public InputStream returnErrorImage(String file)
getPrefabGraph
public InputStream getPrefabGraph(String resourceId,
String report,
long start,
long end)
- Specified by:
getPrefabGraph in interface RrdGraphService
createAdHocCommand
protected String createAdHocCommand(AdhocGraphType adhocType,
OnmsResource resource,
long start,
long end,
String graphtitle,
String[] dsNames,
String[] dsAggregFxns,
String[] colors,
String[] dsTitles,
String[] dsStyles)
createPrefabCommand
protected String createPrefabCommand(Graph graph,
String commandPrefix,
File workDir,
String reportName)
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
getResourceDao
public ResourceDao getResourceDao()
setResourceDao
public void setResourceDao(ResourceDao resourceDao)
getGraphDao
public GraphDao getGraphDao()
setGraphDao
public void setGraphDao(GraphDao graphDao)
getRrdDao
public RrdDao getRrdDao()
setRrdDao
public void setRrdDao(RrdDao rrdDao)
Copyright © 2009. All Rights Reserved.