com.enterprisedt.net.ftp.async
Class RemoteTransferResult

java.lang.Object
  extended by com.enterprisedt.net.ftp.async.AsyncResult
      extended by com.enterprisedt.net.ftp.async.RemoteTransferResult
Direct Known Subclasses:
RemoteFileResult, TransferMultipleResult

public class RemoteTransferResult
extends AsyncResult

Base class for result classes that deal with remote files.

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Field Summary
static int DEFAULT_NOTIFY_INTERVAL
           
 
Constructor Summary
RemoteTransferResult()
           
 
Method Summary
 int getMinTransferNotifyPeriod()
          Get the minimum period before a transfer callback.
 int getNotifyInterval()
          Get the interval used for progress notification of transfers.
 void setMinTransferNotifyPeriod(int minTransferNotifyPeriod)
          Set the minimum period before a transfer callback.
 void setNotifyInterval(int notifyInterval)
          Set the interval used for progress notification of transfers.
 
Methods inherited from class com.enterprisedt.net.ftp.async.AsyncResult
cancelTask, endAsyncCalled, endAsyncInternal, getClient, getLocalContext, getTag, getTask, getTaskDescription, getTaskId, getThrowable, isCompleted, isSuccessful, notifyComplete, setAsIfCompleted, setClient, setEndAsyncCalled, setLocalContext, setSuccessful, setTag, setTask, setThrowable, waitTillComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NOTIFY_INTERVAL

public static final int DEFAULT_NOTIFY_INTERVAL
See Also:
Constant Field Values
Constructor Detail

RemoteTransferResult

public RemoteTransferResult()
Method Detail

getNotifyInterval

public int getNotifyInterval()
Get the interval used for progress notification of transfers.

Returns:
number of bytes between each notification.

setNotifyInterval

public void setNotifyInterval(int notifyInterval)
Set the interval used for progress notification of transfers.

Parameters:
notifyInterval - number of bytes between each notification.

getMinTransferNotifyPeriod

public int getMinTransferNotifyPeriod()
Get the minimum period before a transfer callback.

Returns:
the minimum notify period (milliseconds).

setMinTransferNotifyPeriod

public void setMinTransferNotifyPeriod(int minTransferNotifyPeriod)
Set the minimum period before a transfer callback.

Parameters:
minTransferNotifyPeriod - the minimum notify period (milliseconds).


Copyright © 2001-2009 Enterprise Distributed Technologies Ltd. All Rights Reserved.