agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/RemoteTransferListener.java
/**
	 * Updates the current transfer task to cancelled. The actual
	 * workers will pick up on this the next time they check the
	 * callback status and send notifications to observers as
	 * needed.
	 */
Updates the current transfer task to cancelled. The actual
workers will pick up on this the next time they check the
callback status and send notifications to observers as
needed.
Updates the current transfer task to cancelled . The actual workers will pick up on this the next time they check the callback status and send notifications to observers as needed .
public void cancel() {
		TransferTask task = getTransferTask();
        if (task != null)
		{
        	if (log.isDebugEnabled())
        		log.debug("Transfer progress callback received for task " + task.getUuid() + ".\n" + task.getSource());
			task.setStatus(TransferStatusType.CANCELLED);
			task.setEndTime(new Date());
			task.updateTransferRate();
			setTransferTask(task);
		}
        else {
        	if (log.isDebugEnabled())
        		log.debug("Transfer progress callback received for task unknown.\nunknown");
        }
        if (log.isDebugEnabled())
        	log.debug("RemoteTransferListender for " + (task == null ? " anonymous transfer " : task.getUuid()) + 
					  " was notified of an interrupt");
		setChanged();
	}
public void cancel ( ) { TransferTask task = getTransferTask ( ) ; if ( task != null ) { if ( log . isDebugEnabled ( ) ) log . debug ( "Transfer progress callback received for task " + task . getUuid ( ) + ".\n" + task . getSource ( ) ) ; task . setStatus ( TransferStatusType . CANCELLED ) ; task . setEndTime ( new Date ( ) ) ; task . updateTransferRate ( ) ; setTransferTask ( task ) ; } else { if ( log . isDebugEnabled ( ) ) log . debug ( "Transfer progress callback received for task unknown.\nunknown" ) ; } if ( log . isDebugEnabled ( ) ) log . debug ( "RemoteTransferListender for " + ( task == null ? " anonymous transfer " : task . getUuid ( ) ) + " was notified of an interrupt" ) ; setChanged ( ) ; }
Updates the current transfer task to cancelled.
Updates the current transfer task to cancelled .
// set this listener to dirty