@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IClusterModel clusterModel = cacheManagerModel.getClusterModel(); if (clusterModel != null) { IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); } clusterListener.tearDown(); clearAllTimeSeries(); synchronized (this) { cacheManagerModel = null; clusterListener = null; } super.tearDown(); } }
@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IClusterModel clusterModel = cacheManagerModel.getClusterModel(); if (clusterModel != null) { IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); } clusterListener.tearDown(); clearAllTimeSeries(); synchronized (this) { cacheManagerModel = null; clusterListener = null; } super.tearDown(); } }
@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } if (cacheManagerModel != null) { IClusterModel clusterModel = cacheManagerModel.getClusterModel(); if (clusterModel != null) { IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); } if (clusterListener != null) { clusterListener.tearDown(); } } clearAllTimeSeries(); synchronized (this) { cacheManagerModel = null; clusterListener = null; } super.tearDown(); } }