org.terracotta.modules.ehcache.presentation
Class BaseEhcacheRuntimeStatsPanel

java.lang.Object
  extended by XContainer
      extended by org.terracotta.modules.ehcache.presentation.BaseEhcacheRuntimeStatsPanel
All Implemented Interfaces:
HierarchyListener, EventListener, ListSelectionListener, CacheManagerModelListener
Direct Known Subclasses:
AggregateEhcacheRuntimeStatsPanel, ClientEhCacheRuntimeStatsPanel

public abstract class BaseEhcacheRuntimeStatsPanel
extends XContainer
implements HierarchyListener, ListSelectionListener, CacheManagerModelListener


Nested Class Summary
protected  class BaseEhcacheRuntimeStatsPanel.TableModelWorker
           
 
Field Summary
protected  ApplicationContext appContext
           
protected  CacheManagerModel cacheManagerModel
           
protected  XObjectTable cacheTable
           
protected  XObjectTableModel cacheTableModel
           
protected  XButton clearAllStatsButton
           
protected  org.terracotta.modules.ehcache.presentation.BaseEhcacheRuntimeStatsPanel.ClusterListener clusterListener
           
protected  org.terracotta.modules.ehcache.presentation.BaseEhcacheRuntimeStatsPanel.MakeCoherentAction makeCoherentAction
           
protected  XButton refreshButton
           
protected  CacheModel selectedCacheModel
           
protected  int sortColumn
           
protected  int sortDirection
           
protected  JToggleButton toggleStatsEnabledButton
           
 
Constructor Summary
BaseEhcacheRuntimeStatsPanel()
           
 
Method Summary
 void cacheModelAdded(CacheModel cacheModel)
           
 void cacheModelChanged(CacheModel cacheModel)
           
 void cacheModelRemoved(CacheModel cacheModel)
           
 void cachesEnabled()
           
protected abstract  BaseEhcacheRuntimeStatsPanel.TableModelWorker createTableModelWorker()
           
protected  JComponent createTablePanel()
           
protected  CacheManagerModel getCacheManagerModel()
           
 CacheModel getSelectedCacheModel()
           
 void hierarchyChanged(HierarchyEvent e)
           
protected  void setCacheTableModel(CacheManagerTableModel tableModel)
           
protected abstract  void setCoherent(CacheModel cacheModel, boolean coherent)
           
 void setSelectedCacheModel(CacheModel cacheModel)
           
 void setup(ApplicationContext appContext, CacheManagerModel cacheManagerModel)
           
 void statisticsEnabled()
           
 void tearDown()
           
protected  void updateStats()
           
 void valueChanged(ListSelectionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appContext

protected ApplicationContext appContext

cacheManagerModel

protected CacheManagerModel cacheManagerModel

clusterListener

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

cacheTable

protected XObjectTable cacheTable

cacheTableModel

protected XObjectTableModel cacheTableModel

selectedCacheModel

protected CacheModel selectedCacheModel

refreshButton

protected XButton refreshButton

clearAllStatsButton

protected XButton clearAllStatsButton

toggleStatsEnabledButton

protected JToggleButton toggleStatsEnabledButton

sortColumn

protected int sortColumn

sortDirection

protected int sortDirection

makeCoherentAction

protected org.terracotta.modules.ehcache.presentation.BaseEhcacheRuntimeStatsPanel.MakeCoherentAction makeCoherentAction
Constructor Detail

BaseEhcacheRuntimeStatsPanel

public BaseEhcacheRuntimeStatsPanel()
Method Detail

setup

public void setup(ApplicationContext appContext,
                  CacheManagerModel cacheManagerModel)

getCacheManagerModel

protected CacheManagerModel getCacheManagerModel()

setCoherent

protected abstract void setCoherent(CacheModel cacheModel,
                                    boolean coherent)

createTablePanel

protected JComponent createTablePanel()

hierarchyChanged

public void hierarchyChanged(HierarchyEvent e)
Specified by:
hierarchyChanged in interface HierarchyListener

valueChanged

public void valueChanged(ListSelectionEvent e)
Specified by:
valueChanged in interface ListSelectionListener

getSelectedCacheModel

public CacheModel getSelectedCacheModel()

setSelectedCacheModel

public void setSelectedCacheModel(CacheModel cacheModel)

createTableModelWorker

protected abstract BaseEhcacheRuntimeStatsPanel.TableModelWorker createTableModelWorker()

setCacheTableModel

protected void setCacheTableModel(CacheManagerTableModel tableModel)

cacheModelAdded

public void cacheModelAdded(CacheModel cacheModel)
Specified by:
cacheModelAdded in interface CacheManagerModelListener

cacheModelRemoved

public void cacheModelRemoved(CacheModel cacheModel)
Specified by:
cacheModelRemoved in interface CacheManagerModelListener

cacheModelChanged

public void cacheModelChanged(CacheModel cacheModel)
Specified by:
cacheModelChanged in interface CacheManagerModelListener

cachesEnabled

public void cachesEnabled()
Specified by:
cachesEnabled in interface CacheManagerModelListener

statisticsEnabled

public void statisticsEnabled()
Specified by:
statisticsEnabled in interface CacheManagerModelListener

updateStats

protected void updateStats()

tearDown

public void tearDown()


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