* The node that was added.
*/
private void fireNodeAdded(Node node) {
- for (NodeListener nodeListener: nodeListeners) {
+ for (NodeListener nodeListener : nodeListeners) {
nodeListener.nodeAdded(node);
}
}
* The node that was removed
*/
private void fireNodeRemoved(Node node) {
- for (NodeListener nodeListener: nodeListeners) {
+ for (NodeListener nodeListener : nodeListeners) {
nodeListener.nodeRemoved(node);
}
}
* The node that is now connected
*/
private void fireNodeConnected(Node node) {
- for (NodeListener nodeListener: nodeListeners) {
+ for (NodeListener nodeListener : nodeListeners) {
nodeListener.nodeConnected(node);
}
}
* The cause of the failure
*/
private void fireNodeConnectionFailed(Node node, Throwable cause) {
- for (NodeListener nodeListener: nodeListeners) {
+ for (NodeListener nodeListener : nodeListeners) {
nodeListener.nodeConnectionFailed(node, cause);
}
}
* if there was no exception
*/
private void fireNodeDisconnected(Node node, Throwable throwable) {
- for (NodeListener nodeListener: nodeListeners) {
+ for (NodeListener nodeListener : nodeListeners) {
nodeListener.nodeDisconnected(node, throwable);
}
}
logger.fine("loaded " + loadedNodes.size() + " nodes from config");
synchronized (syncObject) {
nodes.clear();
- for (Node node: loadedNodes) {
+ for (Node node : loadedNodes) {
addNode(node);
}
}
}
Properties nodeProperties = new Properties();
int nodeIndex = -1;
- for (Node node: nodes) {
+ for (Node node : nodes) {
String nodePrefix = "nodes." + ++nodeIndex;
nodeProperties.setProperty(nodePrefix + ".name", node.getName());
nodeProperties.setProperty(nodePrefix + ".hostname", node.getHostname());