return getNodeGroup(node.getNetworkLocation()); } else { return NodeBase.ROOT;
clusterMapNodeGroup.getNodeGroup(favoredNode.getNetworkLocation()); try { target =
clusterMap.getNodeGroup(localMachine.getNetworkLocation()), excludedNodes, blocksize, maxNodesPerRack, results, avoidStaleNodes, storageTypes); try { return chooseRandom( clusterMap.getNodeGroup(newLocal.getNetworkLocation()), excludedNodes, blocksize, maxNodesPerRack, results, avoidStaleNodes, storageTypes);
@Test public void testNodeGroup() throws Exception { String res = cluster.getNodeGroup(""); assertTrue("NodeGroup should be NodeBase.ROOT for empty location", res.equals(NodeBase.ROOT)); try { cluster.getNodeGroup(null); } catch (IllegalArgumentException e) { assertTrue("Null Network Location should throw exception!", e.getMessage().contains("Network Location is null")); } }
@Test public void testNodeGroup() throws Exception { String res = cluster.getNodeGroup(""); assertTrue("NodeGroup should be NodeBase.ROOT for empty location", res.equals(NodeBase.ROOT)); try { cluster.getNodeGroup(null); } catch (IllegalArgumentException e) { assertTrue("Null Network Location should throw exception!", e.getMessage().contains("Network Location is null")); } }
return getNodeGroup(node.getNetworkLocation()); } else { return NodeBase.ROOT;
return getNodeGroup(node.getNetworkLocation()); } else { return NodeBase.ROOT;
return getNodeGroup(node.getNetworkLocation()); } else { return NodeBase.ROOT;
return getNodeGroup(node.getNetworkLocation()); } else { return NodeBase.ROOT;
clusterMap.getNodeGroup(localMachine.getNetworkLocation()), excludedNodes, blocksize, maxNodesPerRack, results, avoidStaleNodes, storageTypes); try { return chooseRandom( clusterMap.getNodeGroup(newLocal.getNetworkLocation()), excludedNodes, blocksize, maxNodesPerRack, results, avoidStaleNodes, storageTypes);
clusterMap.getNodeGroup(localMachine.getNetworkLocation()), excludedNodes, blocksize, maxNodesPerRack, results, avoidStaleNodes, storageTypes); try { return chooseRandom( clusterMap.getNodeGroup(newLocal.getNetworkLocation()), excludedNodes, blocksize, maxNodesPerRack, results, avoidStaleNodes, storageTypes);