/** DatanodeDescriptor constructor * * @param nodeID id of the data node * @param capacity capacity of the data node * @param dfsUsed space used by the data node * @param remaining remaing capacity of the data node * @param xceiverCount # of data transfers at the data node */ public DatanodeDescriptor(DatanodeID nodeID, long capacity, long dfsUsed, long remaining, int xceiverCount) { super(nodeID); updateHeartbeat(capacity, dfsUsed, remaining, xceiverCount); }
/** DatanodeDescriptor constructor * * @param nodeID id of the data node * @param capacity capacity of the data node * @param dfsUsed space used by the data node * @param remaining remaing capacity of the data node * @param namespace space used by the data node * @param xceiverCount # of data transfers at the data node */ public DatanodeDescriptor(DatanodeID nodeID, long capacity, long dfsUsed, long remaining, long namespaceUsed, int xceiverCount) { super(nodeID); updateHeartbeat(capacity, dfsUsed, remaining, namespaceUsed, xceiverCount); }
/** DatanodeDescriptor constructor * * @param nodeID id of the data node * @param networkLocation location of the data node in network * @param capacity capacity of the data node, including space used by non-dfs * @param dfsUsed the used space by dfs datanode * @param remaining remaing capacity of the data node * @param xceiverCount # of data transfers at the data node */ public DatanodeDescriptor(DatanodeID nodeID, String networkLocation, String hostName, long capacity, long dfsUsed, long remaining, int xceiverCount) { super(nodeID, networkLocation, hostName); updateHeartbeat(capacity, dfsUsed, remaining, xceiverCount); }
/** DatanodeDescriptor constructor * * @param nodeID id of the data node * @param networkLocation location of the data node in network * @param capacity capacity of the data node, including space used by non-dfs * @param dfsUsed the used space by dfs datanode * @param remaining remaing capacity of the data node * @param namespace space used by the data node * @param xceiverCount # of data transfers at the data node */ public DatanodeDescriptor(DatanodeID nodeID, String networkLocation, String hostName, long capacity, long dfsUsed, long remaining, long namespaceUsed, int xceiverCount) { super(nodeID, networkLocation, hostName); updateHeartbeat(capacity, dfsUsed, remaining, namespaceUsed, xceiverCount); }
nodeinfo.updateHeartbeat(capacity, dfsUsed, remaining, xceiverCount); updateStats(nodeinfo, true);
nodeinfo.updateHeartbeat(capacity, dfsUsed, remaining, namespaceUsed, xceiverCount); updateStats(nodeinfo, true);
datanode.updateHeartbeat(100L, 100L, 0L, 0, 0);
heartbeats.add(nodeS); nodeS.updateHeartbeat(0L, 0L, 0L, 0); nodeS.isAlive = true;
heartbeats.add(nodeS); nodeS.updateHeartbeat(0L, 0L, 0L, 0L, 0); nodeS.isAlive = true;
dataNodes[i].updateHeartbeat( 2*FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0L, (FSConstants.MIN_BLOCKS_FOR_WRITE-1)*BLOCK_SIZE, 0, 0); dataNodes[i].updateHeartbeat( 2*FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0L, FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0, 0);
dataNodes[0].updateHeartbeat( 2*FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0L, FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 4, 0); // overloaded assertFalse(cluster.isOnSameRack(targets[0], targets[2])); dataNodes[0].updateHeartbeat( 2*FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0L, FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0, 0);
dataNodes[0].updateHeartbeat( 2*FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0L, (FSConstants.MIN_BLOCKS_FOR_WRITE-1)*BLOCK_SIZE, 0, 0); // no space assertFalse(cluster.isOnSameRack(targets[1], targets[3])); dataNodes[0].updateHeartbeat( 2*FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0L, FSConstants.MIN_BLOCKS_FOR_WRITE*BLOCK_SIZE, 0, 0);