this.blocksToReceive = 2 * getScheduledSize(); long previousMoveTimestamp = Time.monotonicNow(); while (getScheduledSize() > 0 && !isIterationOver() && (!srcBlocks.isEmpty() || blocksToReceive > 0)) { if (LOG.isTraceEnabled()) { if (isIterationOver()) { LOG.info("The maximum iteration time (" + maxIterationTime/1000 + " seconds) has been reached. Stopping " + this);
DataInputStream in = null; try { if (source.isIterationOver()){ LOG.info("Cancel moving " + this + " as iteration is already cancelled due to" +
this.blocksToReceive = 2 * getScheduledSize(); long previousMoveTimestamp = Time.monotonicNow(); while (getScheduledSize() > 0 && !isIterationOver() && (!srcBlocks.isEmpty() || blocksToReceive > 0)) { if (LOG.isTraceEnabled()) { if (isIterationOver()) { LOG.info("The maximum iteration time (" + MAX_ITERATION_TIME/1000 + " seconds) has been reached. Stopping " + this);
this.blocksToReceive = 2 * getScheduledSize(); long previousMoveTimestamp = Time.monotonicNow(); while (getScheduledSize() > 0 && !isIterationOver() && (!srcBlocks.isEmpty() || blocksToReceive > 0)) { if (LOG.isTraceEnabled()) { if (isIterationOver()) { LOG.info("The maximum iteration time (" + MAX_ITERATION_TIME/1000 + " seconds) has been reached. Stopping " + this);
/** Check whether to continue waiting for response */ private boolean stopWaitingForResponse(long startTime) { return source.isIterationOver() || (blockMoveTimeout > 0 && (Time.monotonicNow() - startTime > blockMoveTimeout)); }
/** Check whether to continue waiting for response */ private boolean stopWaitingForResponse(long startTime) { return source.isIterationOver() || (blockMoveTimeout > 0 && (Time.monotonicNow() - startTime > blockMoveTimeout)); }
/** Check whether to continue waiting for response */ private boolean stopWaitingForResponse(long startTime) { return source.isIterationOver() || (blockMoveTimeout > 0 && (Time.monotonicNow() - startTime > blockMoveTimeout)); }