|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.MultipleTransferSettings
public class MultipleTransferSettings
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.
| 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 |
|---|
protected com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context
| Constructor Detail |
|---|
protected MultipleTransferSettings(com.enterprisedt.net.ftp.async.internal.SecureConnectionContext context)
context - context that settings are kept in| Method Detail |
|---|
public int getCountBeforeSleep()
public void setCountBeforeSleep(int countBeforeSleep)
countBeforeSleep - maximum transfer countpublic boolean isSleepEnabled()
public void setSleepEnabled(boolean sleepEnabled)
sleepEnabled - if true, sleeping is enabled, otherwise it is switched offpublic int getSleepTime()
public void setSleepTime(int sleepTime)
sleepTime - sleep time in seconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||