@Override public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { super.setup(appContext, clusterModel, persistenceUnit); }
@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } synchronized (this) { client = null; } super.tearDown(); } }
public void actionPerformed(final ActionEvent ae) { clearAllStats(); updateRegionStats(); } });
public void setup(final ApplicationContext appContext, final IClusterModel clusterModel, final String persistenceUnit) { this.appContext = appContext; this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; this.beanProvider = new HibernateStatsMBeanProvider(clusterModel, persistenceUnit); this.beanProvider.addNotificationListener(this); try { statsBeanObjectName = HibernateStatsUtils.getHibernateStatsBeanName(persistenceUnit); statsBeanPattern = new ObjectName(statsBeanObjectName.getCanonicalName() + ",*"); } catch (Exception e) { throw new RuntimeException(e); } setLayout(new BorderLayout()); add(createRegionTablePanel()); revalidate(); repaint(); clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { init(); } }
protected void updateRegionStats() { refreshRegionsButton.setEnabled(false); appContext.execute(createRegionStatsWorker()); }
@Override protected JComponent createRegionTablePanel() { JComponent comp = super.createRegionTablePanel(); regionTable.getColumnModel().getColumn(5).setCellRenderer(new DashRenderer()); return comp; }
public void setup(final ApplicationContext appContext, final IClusterModel clusterModel, final String persistenceUnit) { this.appContext = appContext; this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; this.beanProvider = new HibernateStatsMBeanProvider(clusterModel, persistenceUnit); this.beanProvider.addNotificationListener(this); try { statsBeanObjectName = HibernateStatsUtils.getHibernateStatsBeanName(persistenceUnit); } catch (Exception e) { throw new RuntimeException(e); } setLayout(new BorderLayout()); add(createRegionTablePanel()); revalidate(); repaint(); clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { init(); } }
protected void updateRegionStats() { refreshRegionsButton.setEnabled(false); appContext.execute(createRegionStatsWorker()); }
@Override protected JComponent createRegionTablePanel() { JComponent comp = super.createRegionTablePanel(); regionTable.getColumnModel().getColumn(5).setCellRenderer(new DashRenderer()); return comp; }
public void setup(final ApplicationContext appContext, final IClusterModel clusterModel, final String persistenceUnit) { this.appContext = appContext; this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; this.beanProvider = new HibernateStatsMBeanProvider(clusterModel, persistenceUnit); this.beanProvider.addNotificationListener(this); try { statsBeanObjectName = HibernateStatsUtils.getHibernateStatsBeanName(persistenceUnit); statsBeanPattern = new ObjectName(statsBeanObjectName.getCanonicalName() + ",*"); } catch (Exception e) { throw new RuntimeException(e); } setLayout(new BorderLayout()); add(createRegionTablePanel()); revalidate(); repaint(); clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { init(); } }
public void actionPerformed(final ActionEvent ae) { clearAllStats(); updateRegionStats(); } });
public void setup(ApplicationContext appContext, IClusterModel clusterModel, IClient client, String persistenceUnit) { this.client = client; super.setup(appContext, clusterModel, persistenceUnit); }
protected void updateRegionStats() { refreshRegionsButton.setText(BUSY); refreshRegionsButton.setEnabled(false); appContext.execute(createRegionStatsWorker()); }
@Override protected JComponent createRegionTablePanel() { JComponent comp = super.createRegionTablePanel(); regionTable.getColumnModel().getColumn(5).setCellRenderer(new DashRenderer()); return comp; }
@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } synchronized (this) { client = null; } super.tearDown(); } }
public void actionPerformed(final ActionEvent ae) { clearAllStats(); updateRegionStats(); } });
@Override public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { super.setup(appContext, clusterModel, persistenceUnit); }
@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } synchronized (this) { client = null; } super.tearDown(); } }
public void actionPerformed(final ActionEvent ae) { updateRegionStats(); } });
public void setup(ApplicationContext appContext, IClusterModel clusterModel, IClient client, String persistenceUnit) { this.client = client; super.setup(appContext, clusterModel, persistenceUnit); }