org.jboss.varia.stats.report
Class ReportGenerator

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.varia.stats.report.ReportGenerator
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)
Direct Known Subclasses:
CacheReportGenerator (src) , GeneralReportGenerator (src) , TableReportGenerator (src)

public abstract class ReportGenerator
extends ServiceMBeanSupport (src)


Field Summary
protected  java.lang.String description
           
protected  java.lang.String name
           
protected  ObjectName (src) statsCollector
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
ReportGenerator()
           
 
Method Summary
protected abstract  void content(java.lang.String reportName, java.lang.StringBuffer buf)
           
 java.lang.String generate(java.lang.String reportName)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
          Use the short class name as the default for the service name.
protected  java.util.Iterator getReportsIterator()
           
 ObjectName (src) getStatsCollector()
           
protected  TxStatistics (src) getTxStatistics()
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setStatsCollector(ObjectName (src)  statsCollector)
           
 void startService()
          Sub-classes should override this method to provide custum 'start' logic.
 void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statsCollector

protected ObjectName (src)  statsCollector

name

protected java.lang.String name

description

protected java.lang.String description
Constructor Detail

ReportGenerator

public ReportGenerator()
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()
Description copied from class: ServiceMBeanSupport (src)
Use the short class name as the default for the service name.

Specified by:
getName in interface ServiceMBean (src)
Overrides:
getName in class ServiceMBeanSupport (src)

setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()

setStatsCollector

public void setStatsCollector(ObjectName (src)  statsCollector)

getStatsCollector

public ObjectName (src)  getStatsCollector()

startService

public void startService()
                  throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

public void stopService()
                 throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

generate

public java.lang.String generate(java.lang.String reportName)
                          throws java.lang.Exception
Throws:
java.lang.Exception

content

protected abstract void content(java.lang.String reportName,
                                java.lang.StringBuffer buf)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getReportsIterator

protected java.util.Iterator getReportsIterator()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getTxStatistics

protected TxStatistics (src)  getTxStatistics()
                                throws java.lang.Exception
Throws:
java.lang.Exception