org.terracotta.modules.ehcache.presentation
Class BaseEhcacheStatsChartPanel

java.lang.Object
  extended by BaseRuntimeStatsPanel
      extended by org.terracotta.modules.ehcache.presentation.BaseEhcacheStatsChartPanel
Direct Known Subclasses:
AggregateEhcacheStatsChartPanel, ClientEhcacheStatsChartPanel

public class BaseEhcacheStatsChartPanel
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 static String CACHE_UPDATE_SAMPLE_ATTR
           
protected  StatusView cacheHitRateLabel
           
protected  String cacheHitRateLabelFormat
           
protected  TimeSeries cacheHitRateSeries
           
protected  XLabel cacheHitRatioLabel
           
protected  String cacheHitRatioLabelFormat
           
protected  TimeSeries cacheHitRatioSeries
           
protected  CacheManagerModel cacheManagerModel
           
protected  StatusView cacheMissRateLabel
           
protected  String cacheMissRateLabelFormat
           
protected  TimeSeries cacheMissRateSeries
           
protected  XLabel cachePutRateLabel
           
protected  String cachePutRateLabelFormat
           
protected  TimeSeries cachePutRateSeries
           
protected  XLabel cacheUpdateRateLabel
           
protected  String cacheUpdateRateLabelFormat
           
protected  TimeSeries cacheUpdateRateSeries
           
protected  org.terracotta.modules.ehcache.presentation.BaseEhcacheStatsChartPanel.ClusterListener clusterListener
           
protected static Font labelFont
           
protected static String[] POLLED_ATTRS
           
protected  ObjectName statsBeanObjectName
           
 
Constructor Summary
protected BaseEhcacheStatsChartPanel(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)
           
 CacheManagerModel getCacheManagerModel()
           
 IClusterModel getClusterModel()
           
protected  void init()
           
protected  void removePolledAttributeListener()
           
 void setup(ApplicationContext appContext, CacheManagerModel cacheManagerModel)
           
protected  void setup(XContainer chartsPanel)
           
protected  void setupCacheHitRatioPanel(XContainer parent)
           
protected  void setupCacheMissRatePanel(XContainer parent)
           
protected  void setupCachePutRatePanel(XContainer parent)
           
protected  void setupUpdateRatePanel(XContainer parent)
           
 void suspend()
           
 void tearDown()
           
protected  void updateAllSeries(long updateRate, 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

cacheManagerModel

protected CacheManagerModel cacheManagerModel

clusterListener

protected org.terracotta.modules.ehcache.presentation.BaseEhcacheStatsChartPanel.ClusterListener clusterListener

cacheUpdateRateSeries

protected TimeSeries cacheUpdateRateSeries

cacheHitRateSeries

protected TimeSeries cacheHitRateSeries

cacheHitRatioSeries

protected TimeSeries cacheHitRatioSeries

cachePutRateSeries

protected TimeSeries cachePutRateSeries

cacheMissRateSeries

protected TimeSeries cacheMissRateSeries

cacheUpdateRateLabel

protected XLabel cacheUpdateRateLabel

cacheHitRatioLabel

protected XLabel cacheHitRatioLabel

cachePutRateLabel

protected XLabel cachePutRateLabel

cacheMissRateLabel

protected StatusView cacheMissRateLabel

cacheHitRateLabel

protected StatusView cacheHitRateLabel

cacheUpdateRateLabelFormat

protected final String cacheUpdateRateLabelFormat
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

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

CACHE_UPDATE_SAMPLE_ATTR

protected static final String CACHE_UPDATE_SAMPLE_ATTR
See Also:
Constant Field Values

POLLED_ATTRS

protected static final String[] POLLED_ATTRS
Constructor Detail

BaseEhcacheStatsChartPanel

protected BaseEhcacheStatsChartPanel(ApplicationContext appContext)
Method Detail

setup

public void setup(ApplicationContext appContext,
                  CacheManagerModel cacheManagerModel)

getCacheManagerModel

public CacheManagerModel getCacheManagerModel()

getClusterModel

public IClusterModel getClusterModel()

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)

setupUpdateRatePanel

protected void setupUpdateRatePanel(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 updateRate,
                               long hitRate,
                               long putRate,
                               long missRate)

tearDown

public void tearDown()


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