org.opennms.web.svclayer.support
Class DefaultKscReportService

java.lang.Object
  extended by org.opennms.web.svclayer.support.DefaultKscReportService
All Implemented Interfaces:
KscReportService, org.springframework.beans.factory.InitializingBean

public class DefaultKscReportService
extends Object
implements KscReportService, org.springframework.beans.factory.InitializingBean

DefaultKscReportService class.

Since:
1.8.1
Version:
$Id: $
Author:
DJ Gregor

Constructor Summary
DefaultKscReportService()
           
 
Method Summary
 void afterPropertiesSet()
          afterPropertiesSet
 Report buildDomainReport(String domain)
          buildDomainReport
 Report buildNodeReport(int node_id)
          buildNodeReport
 KSC_PerformanceReportFactory getKscReportFactory()
          getKscReportFactory
 Map<Integer,String> getReportList()
          getReportList
 OnmsResource getResourceFromGraph(Graph graph)
          getResourceFromGraph
 ResourceService getResourceService()
          getResourceService
 List<OnmsResource> getResourcesFromGraphs(List<Graph> graphs)
          getResourcesFromGraphs
 Map<String,String> getTimeSpans(boolean includeNone)
          getTimeSpans
 void setKscReportFactory(KSC_PerformanceReportFactory kscReportFactory)
          setKscReportFactory
 void setResourceService(ResourceService resourceService)
          setResourceService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKscReportService

public DefaultKscReportService()
Method Detail

buildDomainReport

public Report buildDomainReport(String domain)

buildDomainReport

Specified by:
buildDomainReport in interface KscReportService
Parameters:
domain - a String object.
Returns:
a Report object.

buildNodeReport

public Report buildNodeReport(int node_id)

buildNodeReport

Specified by:
buildNodeReport in interface KscReportService
Parameters:
node_id - a int.
Returns:
a Report object.

getResourceFromGraph

public OnmsResource getResourceFromGraph(Graph graph)

getResourceFromGraph

Specified by:
getResourceFromGraph in interface KscReportService
Parameters:
graph - a Graph object.
Returns:
a OnmsResource object.

getResourcesFromGraphs

public List<OnmsResource> getResourcesFromGraphs(List<Graph> graphs)

getResourcesFromGraphs

Specified by:
getResourcesFromGraphs in interface KscReportService
Parameters:
graphs - a List object.
Returns:
a List object.

getTimeSpans

public Map<String,String> getTimeSpans(boolean includeNone)

getTimeSpans

Specified by:
getTimeSpans in interface KscReportService
Parameters:
includeNone - a boolean.
Returns:
a java$util$Map object.

getReportList

public Map<Integer,String> getReportList()

getReportList

Specified by:
getReportList in interface KscReportService
Returns:
a Map object.

getResourceService

public ResourceService getResourceService()

getResourceService

Returns:
a ResourceService object.

setResourceService

public void setResourceService(ResourceService resourceService)

setResourceService

Parameters:
resourceService - a ResourceService object.

getKscReportFactory

public KSC_PerformanceReportFactory getKscReportFactory()

getKscReportFactory

Returns:
a KSC_PerformanceReportFactory object.

setKscReportFactory

public void setKscReportFactory(KSC_PerformanceReportFactory kscReportFactory)

setKscReportFactory

Parameters:
kscReportFactory - a KSC_PerformanceReportFactory object.

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

afterPropertiesSet

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - if any.


Copyright © 2011. All Rights Reserved.