@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); clusterListener.tearDown(); pagedView.removePropertyChangeListener(this); elementChooser.removeActionListener(this); synchronized (this) { appContext = null; clusterModel = null; clusterListener = null; elementChooser = null; pagedView = null; } super.tearDown(); }
@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); clusterListener.tearDown(); pagedView.removePropertyChangeListener(this); elementChooser.removeActionListener(this); synchronized (this) { appContext = null; clusterModel = null; clusterListener = null; elementChooser = null; pagedView = null; } super.tearDown(); }
@Override public void tearDown() { if (!tornDown.compareAndSet(false, true)) { return; } IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { activeCoord.removeClientConnectionListener(this); } clusterModel.removePropertyChangeListener(clusterListener); clusterListener.tearDown(); pagedView.removePropertyChangeListener(this); elementChooser.removeActionListener(this); synchronized (this) { appContext = null; clusterModel = null; clusterListener = null; elementChooser = null; pagedView = null; } super.tearDown(); }
public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { this.appContext = appContext; this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; mainPanel = createMainPanel(); messagePanel = createMessagePanel(); clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { addNodePanels(); removeAll(); add(mainPanel); } else { add(messagePanel); messageLabel.setText(appContext.getString("cluster.not.ready.msg")); } }
public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { this.appContext = appContext; this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; mainPanel = createMainPanel(); messagePanel = createMessagePanel(); clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { addNodePanels(); removeAll(); add(mainPanel); } else { add(messagePanel); messageLabel.setText(appContext.getString("cluster.not.ready.msg")); } }
public void setup(ApplicationContext appContext, IClusterModel clusterModel, String persistenceUnit) { this.appContext = appContext; this.clusterModel = clusterModel; this.persistenceUnit = persistenceUnit; mainPanel = createMainPanel(); messagePanel = createMessagePanel(); clusterModel.addPropertyChangeListener(clusterListener = new ClusterListener(clusterModel)); if (clusterModel.isReady()) { addNodePanels(); removeAll(); add(mainPanel); } else { add(messagePanel); messageLabel.setText(appContext.getString("cluster.not.ready.msg")); } }