|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.statistics.light.LightStatisticsReporter
public class LightStatisticsReporter
This class is a JMX proxy for JAMon performance measurements.
Field Summary | |
---|---|
static String |
NAME
The address that points to this class. |
Constructor Summary | |
---|---|
LightStatisticsReporter()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
void |
disableMonitor()
Disables the monitor preventing gathering measurements. |
void |
enableMonitor()
Enables the monitor to gather measurements. |
String[] |
getData()
Retrieves the performance measurements and returns a string representation. |
String |
getFormatString()
|
MBeanServer |
getServer()
|
boolean |
isFullyQualified()
|
protected int[] |
prepareData(String[][] data)
Converts class names, removes blank characters and computes the number of chars in the widest line. |
String |
report()
Shows a Html report of the current data. |
void |
resetMonitor()
Clears all the measured data. |
void |
setFormatString(String formatString)
Sets the format string used to layout measurements. |
void |
setFullyQualified(boolean fullyQualified)
Sets whether the class names should be shown in fully qualified representation. |
void |
setServer(MBeanServer beanServer)
Sets the MBean server where this instance has to register. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
Constructor Detail |
---|
public LightStatisticsReporter()
Method Detail |
---|
public String getFormatString()
getFormatString
in interface LightStatisticsReporterMBean
public void setFormatString(String formatString)
MessageFormat
instance.
setFormatString
in interface LightStatisticsReporterMBean
formatString
- The format string.MessageFormat
public boolean isFullyQualified()
isFullyQualified
in interface LightStatisticsReporterMBean
true
if class names are shown fully
qualified.public void setFullyQualified(boolean fullyQualified)
setFullyQualified
in interface LightStatisticsReporterMBean
fullyQualified
- true
to show fully qualified class
names.public MBeanServer getServer()
public void setServer(MBeanServer beanServer)
beanServer
- The MBean server to set.public void resetMonitor()
resetMonitor
in interface LightStatisticsReporterMBean
public void enableMonitor()
enableMonitor
in interface LightStatisticsReporterMBean
public void disableMonitor()
disableMonitor
in interface LightStatisticsReporterMBean
public String[] getData()
LightStatisticsReporterMBean.setFormatString(String)
method.
getData
in interface LightStatisticsReporterMBean
protected int[] prepareData(String[][] data)
data
- The measurement data.
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
public String report()
report
in interface LightStatisticsReporterMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |