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")); } }
@Override protected void handleReady() { if (tornDown.get()) { return; } removeAll(); if (clusterModel.isReady()) { if (!inited) { addNodePanels(); } add(mainPanel); } else { messageLabel.setText(appContext.getString("cluster.not.ready.msg")); add(messagePanel); } revalidate(); repaint(); }
private void addNodePanels() { chartPagedView.removeAll(); tablePagedView.removeAll(); chartPagedView.addPage(createAggregateH2LCStatsChartPanel()); tablePagedView.addPage(createAggregateRuntimeStatsPanel()); IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { for (IClient client : activeCoord.getClients()) { chartPagedView.addPage(createClientH2LCStatsChartPanel(client)); tablePagedView.addPage(createClientRuntimeStatsPanel(client)); } activeCoord.addClientConnectionListener(this); } elementChooser.setSelectedPath(AGGREGATE_NODE_NAME); chartPagedView.addPropertyChangeListener(this); inited = true; }
private XContainer createMainPanel() { XContainer panel = new XContainer(new BorderLayout()); XTabbedPane tabbedPane = new XTabbedPane(); tabbedPane.add(bundle.getString("overview"), overviewPanel = new OverviewPanel()); tabbedPane.add(bundle.getString("statistics"), h2lcStatsPanel = new H2LCRuntimeStatsPanel()); tabbedPane.add(bundle.getString("configuration"), cacheRegionsPanel = new CacheRegionsPanel()); panel.add(tabbedPane, BorderLayout.CENTER); return panel; }
@Override protected void handleReady() { if (tornDown.get()) { return; } removeAll(); if (clusterModel.isReady()) { if (!inited) { addNodePanels(); } add(mainPanel); } else { messageLabel.setText(appContext.getString("cluster.not.ready.msg")); add(messagePanel); } revalidate(); repaint(); }
private void addNodePanels() { chartPagedView.removeAll(); tablePagedView.removeAll(); chartPagedView.addPage(createAggregateH2LCStatsChartPanel()); tablePagedView.addPage(createAggregateRuntimeStatsPanel()); IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { for (IClient client : activeCoord.getClients()) { chartPagedView.addPage(createClientH2LCStatsChartPanel(client)); tablePagedView.addPage(createClientRuntimeStatsPanel(client)); } activeCoord.addClientConnectionListener(this); } elementChooser.setSelectedPath(AGGREGATE_NODE_NAME); chartPagedView.addPropertyChangeListener(this); inited = true; }
private XContainer createMainPanel() { XContainer panel = new XContainer(new BorderLayout()); XTabbedPane tabbedPane = new XTabbedPane(); tabbedPane.add(bundle.getString("overview"), overviewPanel = new OverviewPanel()); tabbedPane.add(bundle.getString("statistics"), h2lcStatsPanel = new H2LCRuntimeStatsPanel()); tabbedPane.add(bundle.getString("configuration"), cacheRegionsPanel = new CacheRegionsPanel()); panel.add(tabbedPane, BorderLayout.CENTER); return panel; }
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")); } }
@Override protected void handleReady() { if (tornDown.get()) { return; } removeAll(); if (clusterModel.isReady()) { if (!inited) { addNodePanels(); } add(mainPanel); } else { messageLabel.setText(appContext.getString("cluster.not.ready.msg")); add(messagePanel); } revalidate(); repaint(); }
private void addNodePanels() { elementChooser.setupTreeModel(); chartPagedView.removeAll(); tablePagedView.removeAll(); chartPagedView.addPage(createAggregateH2LCStatsChartPanel()); tablePagedView.addPage(createAggregateRuntimeStatsPanel()); IServer activeCoord = clusterModel.getActiveCoordinator(); if (activeCoord != null) { for (IClient client : activeCoord.getClients()) { chartPagedView.addPage(createClientH2LCStatsChartPanel(client)); tablePagedView.addPage(createClientRuntimeStatsPanel(client)); } activeCoord.addClientConnectionListener(this); } elementChooser.setSelectedPath(AGGREGATE_NODE_NAME); chartPagedView.addPropertyChangeListener(this); inited = true; }
private XContainer createMainPanel() { XContainer panel = new XContainer(new BorderLayout()); XTabbedPane tabbedPane = new XTabbedPane(); tabbedPane.add(bundle.getString("overview"), overviewPanel = new OverviewPanel()); tabbedPane.add(bundle.getString("statistics"), h2lcStatsPanel = new H2LCRuntimeStatsPanel()); tabbedPane.add(bundle.getString("configuration"), cacheRegionsPanel = new CacheRegionsPanel()); panel.add(tabbedPane, BorderLayout.CENTER); return panel; }
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")); } }