org.terracotta.modules.hibernatecache.presentation
Class BaseH2LCStatsChartPanel

java.lang.Object
  extended by BaseRuntimeStatsPanel
      extended by org.terracotta.modules.hibernatecache.presentation.BaseH2LCStatsChartPanel
Direct Known Subclasses:
AggregateH2LCStatsChartPanel, ClientH2LCStatsChartPanel

public class BaseH2LCStatsChartPanel
extends BaseRuntimeStatsPanel


Field Summary
protected static String CACHE_HIT_SAMPLE_ATTR
           
protected static String CACHE_MISS_SAMPLE_ATTR
           
protected static String CACHE_PUT_SAMPLE_ATTR
           
protected  StatusView cacheHitRateLabel
           
protected  String cacheHitRateLabelFormat
           
protected  TimeSeries cacheHitRateSeries
           
protected  XLabel cacheHitRatioLabel
           
protected  String cacheHitRatioLabelFormat
           
protected  TimeSeries cacheHitRatioSeries
           
protected  StatusView cacheMissRateLabel
           
protected  String cacheMissRateLabelFormat
           
protected  TimeSeries cacheMissRateSeries
           
protected  XLabel cachePutRateLabel
           
protected  String cachePutRateLabelFormat
           
protected  TimeSeries cachePutRateSeries
           
protected  org.terracotta.modules.hibernatecache.presentation.BaseH2LCStatsChartPanel.ClusterListener clusterListener
           
protected  IClusterModel clusterModel
           
protected static String DBSQL_EXECUTION_SAMPLE_ATTR
           
protected static Font labelFont
           
protected  String persistenceUnit
           
protected static String[] POLLED_ATTRS
           
protected static String QUERY_EXECUTION_SAMPLE_ATTR
           
protected  XLabel queryExecutionRateLabel
           
protected  String queryExecutionRateLabelFormat
           
protected  TimeSeries queryExecutionRateSeries
           
protected  ObjectName statsBeanObjectName
           
 
Constructor Summary
protected BaseH2LCStatsChartPanel(ApplicationContext appContext)
           
 
Method Summary
protected  void addPolledAttributeListener()
           
 void clientConnected(IClient client)
           
 void clientDisconnected(IClient client)
           
protected static XLabel createOverlayLabel()
           
protected static StatusView createStatusLabel(Color color)
           
protected  void init()
           
protected  void removePolledAttributeListener()
           
 void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit)
           
protected  void setup(XContainer chartsPanel)
           
protected  void setupCacheHitRatioPanel(XContainer parent)
           
protected  void setupCacheMissRatePanel(XContainer parent)
           
protected  void setupCachePutRatePanel(XContainer parent)
           
protected  void setupQueryExecutionRatePanel(XContainer parent)
           
 void suspend()
           
 void tearDown()
           
protected  void updateAllSeries(long executionRate, long hitRate, long putRate, long missRate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clusterModel

protected IClusterModel clusterModel

clusterListener

protected org.terracotta.modules.hibernatecache.presentation.BaseH2LCStatsChartPanel.ClusterListener clusterListener

persistenceUnit

protected String persistenceUnit

queryExecutionRateSeries

protected TimeSeries queryExecutionRateSeries

cacheHitRateSeries

protected TimeSeries cacheHitRateSeries

cacheHitRatioSeries

protected TimeSeries cacheHitRatioSeries

cachePutRateSeries

protected TimeSeries cachePutRateSeries

cacheMissRateSeries

protected TimeSeries cacheMissRateSeries

queryExecutionRateLabel

protected XLabel queryExecutionRateLabel

cacheHitRatioLabel

protected XLabel cacheHitRatioLabel

cachePutRateLabel

protected XLabel cachePutRateLabel

cacheMissRateLabel

protected StatusView cacheMissRateLabel

cacheHitRateLabel

protected StatusView cacheHitRateLabel

queryExecutionRateLabelFormat

protected final String queryExecutionRateLabelFormat
See Also:
Constant Field Values

cacheHitRatioLabelFormat

protected final String cacheHitRatioLabelFormat
See Also:
Constant Field Values

cachePutRateLabelFormat

protected final String cachePutRateLabelFormat
See Also:
Constant Field Values

cacheMissRateLabelFormat

protected final String cacheMissRateLabelFormat
See Also:
Constant Field Values

cacheHitRateLabelFormat

protected final String cacheHitRateLabelFormat
See Also:
Constant Field Values

labelFont

protected static final Font labelFont

statsBeanObjectName

protected ObjectName statsBeanObjectName

QUERY_EXECUTION_SAMPLE_ATTR

protected static final String QUERY_EXECUTION_SAMPLE_ATTR
See Also:
Constant Field Values

DBSQL_EXECUTION_SAMPLE_ATTR

protected static final String DBSQL_EXECUTION_SAMPLE_ATTR
See Also:
Constant Field Values

CACHE_HIT_SAMPLE_ATTR

protected static final String CACHE_HIT_SAMPLE_ATTR
See Also:
Constant Field Values

CACHE_PUT_SAMPLE_ATTR

protected static final String CACHE_PUT_SAMPLE_ATTR
See Also:
Constant Field Values

CACHE_MISS_SAMPLE_ATTR

protected static final String CACHE_MISS_SAMPLE_ATTR
See Also:
Constant Field Values

POLLED_ATTRS

protected static final String[] POLLED_ATTRS
Constructor Detail

BaseH2LCStatsChartPanel

protected BaseH2LCStatsChartPanel(ApplicationContext appContext)
Method Detail

setup

public void setup(ApplicationContext appContext,
                  IClusterModel clusterModel,
                  String persistenceUnit)

init

protected void init()

suspend

public void suspend()

addPolledAttributeListener

protected void addPolledAttributeListener()

removePolledAttributeListener

protected void removePolledAttributeListener()

clientConnected

public void clientConnected(IClient client)

clientDisconnected

public void clientDisconnected(IClient client)

createOverlayLabel

protected static XLabel createOverlayLabel()

createStatusLabel

protected static StatusView createStatusLabel(Color color)

setup

protected void setup(XContainer chartsPanel)

setupQueryExecutionRatePanel

protected void setupQueryExecutionRatePanel(XContainer parent)

setupCacheHitRatioPanel

protected void setupCacheHitRatioPanel(XContainer parent)

setupCachePutRatePanel

protected void setupCachePutRatePanel(XContainer parent)

setupCacheMissRatePanel

protected void setupCacheMissRatePanel(XContainer parent)

updateAllSeries

protected void updateAllSeries(long executionRate,
                               long hitRate,
                               long putRate,
                               long missRate)

tearDown

public void tearDown()


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.