com.enterprisedt.net.ftp
Class MultipleTransferSettings

java.lang.Object
  extended by com.enterprisedt.net.ftp.MultipleTransferSettings

public class MultipleTransferSettings
extends java.lang.Object

Holds configuration options related to making multiple transfers. These are particularly relevant to the FTP and FTPS protocols as they consume a socket for each file listing or file transfer. They are not required to be set for SFTP, as only one socket is used.

Version:
$Revision: 1.3 $
Author:
Bruce Blackshaw

Field Summary
protected  com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context
           
 
Constructor Summary
protected MultipleTransferSettings(com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context)
          Constructor
 
Method Summary
 int getCountBeforeSleep()
          Get the number of transfers set before sleeping
 int getSleepTime()
          Get the number of seconds spent asleep
 boolean isSleepEnabled()
          Is sleeping enabled?
 void setCountBeforeSleep(int countBeforeSleep)
          Set the number of transfers required before sleeping
 void setSleepEnabled(boolean sleepEnabled)
          Set sleeping enabled to be on or off
 void setSleepTime(int sleepTime)
          Set the time spent asleep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context
Constructor Detail

MultipleTransferSettings

protected MultipleTransferSettings(com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context)
Constructor

Parameters:
context - context that settings are kept in
Method Detail

getCountBeforeSleep

public int getCountBeforeSleep()
Get the number of transfers set before sleeping

Returns:
integer

setCountBeforeSleep

public void setCountBeforeSleep(int countBeforeSleep)
Set the number of transfers required before sleeping

Parameters:
countBeforeSleep - maximum transfer count

isSleepEnabled

public boolean isSleepEnabled()
Is sleeping enabled?

Returns:
true if enabled

setSleepEnabled

public void setSleepEnabled(boolean sleepEnabled)
Set sleeping enabled to be on or off

Parameters:
sleepEnabled - if true, sleeping is enabled, otherwise it is switched off

getSleepTime

public int getSleepTime()
Get the number of seconds spent asleep

Returns:
integer

setSleepTime

public void setSleepTime(int sleepTime)
Set the time spent asleep

Parameters:
sleepTime - sleep time in seconds


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