|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.async.AsyncResult
com.enterprisedt.net.ftp.async.DisconnectResult
public class DisconnectResult
Result returned from disconnect operation
| Field Summary | |
|---|---|
static int |
CLIENT_DISCONNECT
|
static int |
IDLE_TIMEOUT
|
static int |
RECONNECT_FAILED
|
| Constructor Summary | |
|---|---|
DisconnectResult(boolean immediate)
Constructor |
|
| Method Summary | |
|---|---|
void |
endAsync()
This method is called to complete the asynchronous operation. |
int |
getReason()
Get the reason for the disconnection |
java.lang.String |
getReasonMsg()
|
boolean |
isAlreadyDisconnected()
Return true if already disconnected prior to current disconnection attempted. |
boolean |
isImmediate()
Should this be an immediate disconnection? |
void |
setAlreadyDisconnected(boolean alreadyDisconnected)
Set the flag indicating if already disconnected |
void |
setReason(int reason)
Set the reason for the disconnect |
| 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 |
|---|
public static final int CLIENT_DISCONNECT
public static final int IDLE_TIMEOUT
public static final int RECONNECT_FAILED
| Constructor Detail |
|---|
public DisconnectResult(boolean immediate)
immediate - true for immediate (forced) disconnection| Method Detail |
|---|
public boolean isImmediate()
public int getReason()
public java.lang.String getReasonMsg()
public boolean isAlreadyDisconnected()
public void setAlreadyDisconnected(boolean alreadyDisconnected)
alreadyDisconnected - true if already disconnected when this result was created.public void setReason(int reason)
reason - integer representing reason
public void endAsync()
throws FTPException,
java.io.IOException
java.io.IOException
FTPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||