From: David ‘Bombe’ Roden Date: Fri, 22 May 2009 05:07:45 +0000 (+0200) Subject: Rename node listener manager. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e11ac9227c1950ac28ea560800eadffeb8c883be;p=jSite2.git Rename node listener manager. --- diff --git a/src/net/pterodactylus/jsite/core/NodeManager.java b/src/net/pterodactylus/jsite/core/NodeManager.java index 2ab728f..7fd4cc9 100644 --- a/src/net/pterodactylus/jsite/core/NodeManager.java +++ b/src/net/pterodactylus/jsite/core/NodeManager.java @@ -67,7 +67,7 @@ public class NodeManager implements Iterable, PropertyChangeListener { private final Object syncObject = new Object(); /** Node listener support. */ - private final NodeListenerSupport nodeListenerSupport = new NodeListenerSupport(); + private final NodeListenerSupport nodeListenerManager = new NodeListenerSupport(); /** All nodes. */ private final List nodes = Collections.synchronizedList(new ArrayList()); @@ -105,7 +105,7 @@ public class NodeManager implements Iterable, PropertyChangeListener { * The listener to add */ public void addNodeListener(NodeListener nodeListener) { - nodeListenerSupport.addListener(nodeListener); + nodeListenerManager.addListener(nodeListener); } /** @@ -115,7 +115,7 @@ public class NodeManager implements Iterable, PropertyChangeListener { * The listener to remove */ public void removeNodeListener(NodeListener nodeListener) { - nodeListenerSupport.removeListener(nodeListener); + nodeListenerManager.removeListener(nodeListener); } // @@ -285,7 +285,7 @@ public class NodeManager implements Iterable, PropertyChangeListener { node.addPropertyChangeListener(this); nodes.add(node); idNodes.put(node.getId(), node); - nodeListenerSupport.fireNodeAdded(node); + nodeListenerManager.fireNodeAdded(node); return true; } @@ -305,7 +305,7 @@ public class NodeManager implements Iterable, PropertyChangeListener { nodes.remove(node); idNodes.remove(node.getId()); node.removePropertyChangeListener(this); - nodeListenerSupport.fireNodeRemoved(node); + nodeListenerManager.fireNodeRemoved(node); } } @@ -325,13 +325,13 @@ public class NodeManager implements Iterable, PropertyChangeListener { FcpClient fcpClient = new FcpClient(clientName, node.getHostname(), node.getPort()); fcpClient.connect(); nodeClients.put(node, fcpClient); - nodeListenerSupport.fireNodeConnected(node); + nodeListenerManager.fireNodeConnected(node); } catch (UnknownHostException uhe1) { - nodeListenerSupport.fireNodeConnectionFailed(node, uhe1); + nodeListenerManager.fireNodeConnectionFailed(node, uhe1); } catch (IOException ioe1) { - nodeListenerSupport.fireNodeConnectionFailed(node, ioe1); + nodeListenerManager.fireNodeConnectionFailed(node, ioe1); } catch (FcpException fe1) { - nodeListenerSupport.fireNodeConnectionFailed(node, fe1); + nodeListenerManager.fireNodeConnectionFailed(node, fe1); } } @@ -353,7 +353,7 @@ public class NodeManager implements Iterable, PropertyChangeListener { return; } fcpClient.disconnect(); - nodeListenerSupport.fireNodeDisconnected(node, null); + nodeListenerManager.fireNodeDisconnected(node, null); } /**