agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/URLCopy.java
/**
     * Threadsafe check for killed copy command either through the
     * thread being explicitly killed or the transfertask status
     * being set to cancelled.
     * @param listener
     * @throws ClosedByInterruptException
     */
Threadsafe check for killed copy command either through the
thread being explicitly killed or the transfertask status
being set to cancelled.
@param listener
@throws ClosedByInterruptException
Threadsafe check for killed copy command either through the thread being explicitly killed or the transfertask status being set to cancelled . @param listener @throws ClosedByInterruptException
protected void checkCancelled(RemoteTransferListener listener)
            throws ClosedByInterruptException {
        if (isKilled() || listener.isCancelled()) {
            throw new ClosedByInterruptException();
        }
    }
protected void checkCancelled ( RemoteTransferListener listener ) throws ClosedByInterruptException { if ( isKilled ( ) || listener . isCancelled ( ) ) { throw new ClosedByInterruptException ( ) ; } }
Threadsafe check for killed copy command either through the
 thread being explicitly killed or the transfertask status
 being set to cancelled.
Threadsafe check for killed copy command either through the thread being explicitly killed or the transfertask status being set to cancelled .