Ejemplo n.º 1
0
 private void Subtract(DatanodeDescriptor node)
 {
     capacityUsed  -= node.GetDfsUsed();
     blockPoolUsed -= node.GetBlockPoolUsed();
     xceiverCount  -= node.GetXceiverCount();
     if (!(node.IsDecommissionInProgress() || node.IsDecommissioned()))
     {
         nodesInService--;
         nodesInServiceXceiverCount -= node.GetXceiverCount();
         capacityTotal     -= node.GetCapacity();
         capacityRemaining -= node.GetRemaining();
     }
     else
     {
         capacityTotal -= node.GetDfsUsed();
     }
     cacheCapacity -= node.GetCacheCapacity();
     cacheUsed     -= node.GetCacheUsed();
 }