Package org.opennms.web.svclayer.support
Class DefaultKscReportService
- java.lang.Object
-
- org.opennms.web.svclayer.support.DefaultKscReportService
-
- All Implemented Interfaces:
KscReportService
,org.springframework.beans.factory.InitializingBean
public class DefaultKscReportService extends java.lang.Object implements KscReportService, org.springframework.beans.factory.InitializingBean
DefaultKscReportService class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description DefaultKscReportService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetReport
buildDomainReport(java.lang.String domain)
buildDomainReportReport
buildNodeReport(int node_id)
buildNodeReportReport
buildNodeSourceReport(java.lang.String nodeSource)
buildNodeSourceReportKSC_PerformanceReportFactory
getKscReportFactory()
getKscReportFactoryjava.util.Map<java.lang.Integer,java.lang.String>
getReportList()
getReportListjava.util.Map<java.lang.Integer,Report>
getReportMap()
getReportMapOnmsResource
getResourceFromGraph(Graph graph)
getResourceFromGraphResourceService
getResourceService()
getResourceServicejava.util.Map<java.lang.String,java.lang.String>
getTimeSpans(boolean includeNone)
getTimeSpansvoid
setKscReportFactory(KSC_PerformanceReportFactory kscReportFactory)
setKscReportFactoryvoid
setResourceService(ResourceService resourceService)
setResourceService
-
-
-
Method Detail
-
buildDomainReport
public Report buildDomainReport(java.lang.String domain)
buildDomainReport
- Specified by:
buildDomainReport
in interfaceKscReportService
- Parameters:
domain
- aString
object.- Returns:
- a
Report
object.
-
buildNodeReport
public Report buildNodeReport(int node_id)
buildNodeReport
- Specified by:
buildNodeReport
in interfaceKscReportService
- Parameters:
node_id
- a int.- Returns:
- a
Report
object.
-
buildNodeSourceReport
public Report buildNodeSourceReport(java.lang.String nodeSource)
buildNodeSourceReport
- Specified by:
buildNodeSourceReport
in interfaceKscReportService
- Parameters:
nodeSource
- a String.- Returns:
- a
Report
object.
-
getResourceFromGraph
public OnmsResource getResourceFromGraph(Graph graph)
getResourceFromGraph
- Specified by:
getResourceFromGraph
in interfaceKscReportService
- Parameters:
graph
- aGraph
object.- Returns:
- a
OnmsResource
object.
-
getTimeSpans
public java.util.Map<java.lang.String,java.lang.String> getTimeSpans(boolean includeNone)
getTimeSpans
- Specified by:
getTimeSpans
in interfaceKscReportService
- Parameters:
includeNone
- a boolean.- Returns:
- a
Map
object.
-
getReportList
public java.util.Map<java.lang.Integer,java.lang.String> getReportList()
getReportList
- Specified by:
getReportList
in interfaceKscReportService
- Returns:
- a
Map
object.
-
getResourceService
public ResourceService getResourceService()
getResourceService
- Returns:
- a
ResourceService
object.
-
setResourceService
public void setResourceService(ResourceService resourceService)
setResourceService
- Parameters:
resourceService
- aResourceService
object.
-
getKscReportFactory
public KSC_PerformanceReportFactory getKscReportFactory()
getKscReportFactory
- Returns:
- a
KSC_PerformanceReportFactory
object.
-
setKscReportFactory
public void setKscReportFactory(KSC_PerformanceReportFactory kscReportFactory)
setKscReportFactory
- Parameters:
kscReportFactory
- aKSC_PerformanceReportFactory
object.
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
- if any.
-
getReportMap
public java.util.Map<java.lang.Integer,Report> getReportMap()
getReportMap
- Specified by:
getReportMap
in interfaceKscReportService
- Returns:
- a
Map
object.
-
-