public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; try { statsBeanObjectName = HibernateStatsUtils.getHibernateStatsBeanName(persistenceUnit); } catch (Exception e) { throw new RuntimeException(e); } clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { init(); } }
@Override public synchronized void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); clusterListener.tearDown(); clearAllTimeSeries(); clusterModel = null; clusterListener = null; super.tearDown(); } }
@Override public synchronized void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); clusterListener.tearDown(); clearAllTimeSeries(); clusterModel = null; clusterListener = null; super.tearDown(); } }
@Override public synchronized void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); clusterListener.tearDown(); clearAllTimeSeries(); clusterModel = null; clusterListener = null; super.tearDown(); } }
public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; try { statsBeanObjectName = HibernateStatsUtils.getHibernateStatsBeanName(persistenceUnit); } catch (Exception e) { throw new RuntimeException(e); } clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { init(); } }
public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; try { statsBeanObjectName = HibernateStatsUtils.getHibernateStatsBeanName(persistenceUnit); } catch (Exception e) { throw new RuntimeException(e); } clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { init(); } }