org.terracotta.modules.hibernatecache.presentation
Class BaseHibernateRuntimeStatsPanel

java.lang.Object
  extended by XContainer
      extended by org.terracotta.modules.hibernatecache.presentation.BaseHibernateRuntimeStatsPanel
All Implemented Interfaces:
HierarchyListener, EventListener, NotificationListener, ChangeListener
Direct Known Subclasses:
AggregateHibernateRuntimeStatsPanel, ClientHibernateRuntimeStatsPanel

public abstract class BaseHibernateRuntimeStatsPanel
extends XContainer
implements HierarchyListener, ChangeListener, NotificationListener


Nested Class Summary
protected  class BaseHibernateRuntimeStatsPanel.CollectionStatsWorker
           
protected  class BaseHibernateRuntimeStatsPanel.EntityStatsWorker
           
protected  class BaseHibernateRuntimeStatsPanel.QueryStatsWorker
           
 
Field Summary
protected  ApplicationContext appContext
           
protected  HibernateStatsMBeanProvider beanProvider
           
protected  org.terracotta.modules.hibernatecache.presentation.BaseHibernateRuntimeStatsPanel.ClusterListener clusterListener
           
protected  IClusterModel clusterModel
           
protected static String COLLECTION_STATS
           
protected  XObjectTable collectionTable
           
protected  XObjectTableModel collectionTableModel
           
protected static String ENTITY_STATS
           
protected  XObjectTable entityTable
           
protected  XObjectTableModel entityTableModel
           
protected  String persistenceUnit
           
protected static String QUERY_STATS
           
protected  XObjectTable queryTable
           
protected  XObjectTableModel queryTableModel
           
protected  XButton refreshCollectionsButton
           
protected  XButton refreshEntitiesButton
           
protected  XButton refreshQueriesButton
           
protected  ObjectName statsBeanObjectName
           
protected  XTabbedPane tabbedPane
           
 
Constructor Summary
BaseHibernateRuntimeStatsPanel()
           
 
Method Summary
protected abstract  BaseHibernateRuntimeStatsPanel.CollectionStatsWorker createCollectionStatsWorker()
           
protected abstract  BaseHibernateRuntimeStatsPanel.EntityStatsWorker createEntityStatsWorker()
           
protected abstract  BaseHibernateRuntimeStatsPanel.QueryStatsWorker createQueryStatsWorker()
           
protected  IClusterModel getClusterModel()
           
 void handleNotification(Notification notif, Object handBack)
           
 void hierarchyChanged(HierarchyEvent e)
           
 void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit)
           
 void stateChanged(ChangeEvent e)
           
 void tearDown()
           
protected  void updateEntityStats()
           
 
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.BaseHibernateRuntimeStatsPanel.ClusterListener clusterListener

persistenceUnit

protected String persistenceUnit

tabbedPane

protected XTabbedPane tabbedPane

entityTable

protected XObjectTable entityTable

entityTableModel

protected XObjectTableModel entityTableModel

refreshEntitiesButton

protected XButton refreshEntitiesButton

collectionTable

protected XObjectTable collectionTable

collectionTableModel

protected XObjectTableModel collectionTableModel

refreshCollectionsButton

protected XButton refreshCollectionsButton

queryTable

protected XObjectTable queryTable

queryTableModel

protected XObjectTableModel queryTableModel

refreshQueriesButton

protected XButton refreshQueriesButton

beanProvider

protected HibernateStatsMBeanProvider beanProvider

statsBeanObjectName

protected ObjectName statsBeanObjectName

ENTITY_STATS

protected static final String ENTITY_STATS
See Also:
Constant Field Values

COLLECTION_STATS

protected static final String COLLECTION_STATS
See Also:
Constant Field Values

QUERY_STATS

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

BaseHibernateRuntimeStatsPanel

public BaseHibernateRuntimeStatsPanel()
Method Detail

getClusterModel

protected IClusterModel getClusterModel()

setup

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

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

hierarchyChanged

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

createEntityStatsWorker

protected abstract BaseHibernateRuntimeStatsPanel.EntityStatsWorker createEntityStatsWorker()

updateEntityStats

protected void updateEntityStats()

createCollectionStatsWorker

protected abstract BaseHibernateRuntimeStatsPanel.CollectionStatsWorker createCollectionStatsWorker()

createQueryStatsWorker

protected abstract BaseHibernateRuntimeStatsPanel.QueryStatsWorker createQueryStatsWorker()

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.