+ public void nodeConnected(Node node) {
+ Action nodeDisconnectAction = nodeNodeDisconnectActions.get(node);
+ nodeDisconnectActions.add(nodeDisconnectAction);
+ mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.connectedToNode", node.getName(), node.getHostname(), node.getPort()));
+ mainWindow.refreshNodeMenuItems();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void nodeDisconnected(Node node, Throwable throwable) {
+ Action nodeConnectAction = nodeNodeConnectActions.get(node);
+ nodeConnectActions.add(nodeConnectAction);
+ Action nodeDisconnectAction = nodeNodeDisconnectActions.get(node);
+ nodeDisconnectActions.remove(nodeDisconnectAction);
+ mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.disconnectedFromNode", node.getName(), node.getHostname(), node.getPort()));
+ mainWindow.refreshNodeMenuItems();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void requestAdded(Node node, Request request) {
+ logger.log(Level.INFO, "request added to node: " + request + ", " + node);
+ /* TODO - implement */
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public void requestProgressed(Request request, int totalBlocks, int requiredBlocks, int successfulBlocks, int failedBlocks, int fatallyFailedBlocks, boolean finalizedTotal) {
+ /* TODO - update table model */
+ }
+
+ //
+ // INTERFACE LoggingListener
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ public void logged(LogRecord logRecord) {
+ logWindow.logged(logRecord);