ch.elca.el4j.services.statistics.detailed.jmx
Class DetailedStatisticsReporter

java.lang.Object
  extended by ch.elca.el4j.services.statistics.detailed.jmx.DetailedStatisticsReporter
All Implemented Interfaces:
DetailedStatisticsReporterMBean, DisposableBean, InitializingBean

public class DetailedStatisticsReporter
extends Object
implements DetailedStatisticsReporterMBean, InitializingBean, DisposableBean

This class publishes the detailed statistics through JMX.

Author:
David Stefan (DST)
File-location:
DetailedStatisticsReporter
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Field Summary
static String NAME
          The address that points to this class.
 
Constructor Summary
DetailedStatisticsReporter()
           
 
Method Summary
 void afterPropertiesSet()
          
 void createCSVFile(String filename, String measureId)
          Creates a CSV file with the measurment results.
 void createDiagramFile(String filename, String measureId)
          Creates a png file with the measurment results.
 void createDiagramFile(String filename, String measureId, int width, int height)
          Creates a png file with the measurment results.
 void destroy()
          
 DataRepository getDataRepository()
           
 MBeanServer getServer()
           
 void setDataRepository(DataRepository dataRepository)
          Sets the DataAssembler.
 void setServer(MBeanServer beanServer)
          Sets the MBean server where this instance has to register.
 String showMeasureIDTable()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
The address that points to this class.

See Also:
Constant Field Values
Constructor Detail

DetailedStatisticsReporter

public DetailedStatisticsReporter()
Method Detail

getServer

public MBeanServer getServer()
Returns:
Retruns the MBean server instance where this instance is registered in.

setServer

public void setServer(MBeanServer beanServer)
Sets the MBean server where this instance has to register.

Parameters:
beanServer - The MBean server to set.

getDataRepository

public DataRepository getDataRepository()
Returns:
Retruns the DataAssembler which supplies the data for the statistics.

setDataRepository

public void setDataRepository(DataRepository dataRepository)
Sets the DataAssembler.

Parameters:
dataRepository - The DataRepository to set

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception

Specified by:
destroy in interface DisposableBean
Throws:
Exception

showMeasureIDTable

public String showMeasureIDTable()

Specified by:
showMeasureIDTable in interface DetailedStatisticsReporterMBean
Returns:
Table of ids of all measurement.

createCSVFile

public void createCSVFile(String filename,
                          String measureId)
Creates a CSV file with the measurment results.

Specified by:
createCSVFile in interface DetailedStatisticsReporterMBean
Parameters:
filename - Name of file for output
measureId - Id of measurments to output

createDiagramFile

public void createDiagramFile(String filename,
                              String measureId)
Creates a png file with the measurment results.

Specified by:
createDiagramFile in interface DetailedStatisticsReporterMBean
Parameters:
filename - Name of file for output
measureId - Id of measurments to output

createDiagramFile

public void createDiagramFile(String filename,
                              String measureId,
                              int width,
                              int height)
Creates a png file with the measurment results.

Specified by:
createDiagramFile in interface DetailedStatisticsReporterMBean
Parameters:
filename - Name of file for output
measureId - Id of measurments to output
width - Width of the diagram
height - Height of the diagram


Copyright © 2005-2011 ELCA. All Rights Reserved.