org.terracotta.modules.hibernatecache.presentation
Class BaseH2LCRuntimeStatsPanel

java.lang.Object
  extended by XContainer
      extended by org.terracotta.modules.hibernatecache.presentation.BaseH2LCRuntimeStatsPanel
All Implemented Interfaces:
HierarchyListener, EventListener, NotificationListener
Direct Known Subclasses:
AggregateH2LCRuntimeStatsPanel, ClientH2LCRuntimeStatsPanel

public abstract class BaseH2LCRuntimeStatsPanel
extends XContainer
implements HierarchyListener, NotificationListener


Nested Class Summary
protected  class BaseH2LCRuntimeStatsPanel.RegionStatsWorker
           
 
Field Summary
protected  ApplicationContext appContext
           
protected  HibernateStatsMBeanProvider beanProvider
           
protected static String CACHE_REGION_STATS
           
protected  XButton clearAllStatsButton
           
protected  org.terracotta.modules.hibernatecache.presentation.BaseH2LCRuntimeStatsPanel.ClusterListener clusterListener
           
protected  IClusterModel clusterModel
           
protected  String persistenceUnit
           
protected  XButton refreshRegionsButton
           
protected  XObjectTable regionTable
           
protected  XObjectTableModel regionTableModel
           
protected  int sortColumn
           
protected  int sortDirection
           
protected  ObjectName statsBeanObjectName
           
protected  ObjectName statsBeanPattern
           
 
Constructor Summary
BaseH2LCRuntimeStatsPanel()
           
 
Method Summary
protected abstract  BaseH2LCRuntimeStatsPanel.RegionStatsWorker createRegionStatsWorker()
           
protected  JComponent createRegionTablePanel()
           
protected  IClusterModel getClusterModel()
           
 void handleNotification(Notification notif, Object handBack)
           
 void hierarchyChanged(HierarchyEvent e)
           
 void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit)
           
 void tearDown()
           
protected  void updateRegionStats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appContext

protected ApplicationContext appContext

clusterModel

protected IClusterModel clusterModel

clusterListener

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

persistenceUnit

protected String persistenceUnit

regionTable

protected XObjectTable regionTable

regionTableModel

protected XObjectTableModel regionTableModel

refreshRegionsButton

protected XButton refreshRegionsButton

clearAllStatsButton

protected XButton clearAllStatsButton

beanProvider

protected HibernateStatsMBeanProvider beanProvider

statsBeanObjectName

protected ObjectName statsBeanObjectName

statsBeanPattern

protected ObjectName statsBeanPattern

sortColumn

protected int sortColumn

sortDirection

protected int sortDirection

CACHE_REGION_STATS

protected static final String CACHE_REGION_STATS
See Also:
Constant Field Values
Constructor Detail

BaseH2LCRuntimeStatsPanel

public BaseH2LCRuntimeStatsPanel()
Method Detail

getClusterModel

protected IClusterModel getClusterModel()

setup

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

createRegionTablePanel

protected JComponent createRegionTablePanel()

hierarchyChanged

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

createRegionStatsWorker

protected abstract BaseH2LCRuntimeStatsPanel.RegionStatsWorker createRegionStatsWorker()

updateRegionStats

protected void updateRegionStats()

handleNotification

public void handleNotification(Notification notif,
                               Object handBack)
Specified by:
handleNotification in interface NotificationListener

tearDown

public void tearDown()


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