com.enterprisedt.net.ftp.async
Class ConnectResult
java.lang.Object
com.enterprisedt.net.ftp.async.AsyncResult
com.enterprisedt.net.ftp.async.ConnectResult
public class ConnectResult
- extends AsyncResult
Holds the result of connecting to the server
- Version:
- $Revision: 1.10 $
- Author:
- Bruce Blackshaw
|
Method Summary |
void |
addTask(com.enterprisedt.net.ftp.async.internal.ConnectTask task)
|
void |
addThrowable(java.lang.Throwable throwable)
|
boolean |
cancelTask()
Cancel the asynchronous task that this result is for. |
void |
endAsync()
This method is called to complete the asynchronous operation. |
java.util.Vector |
getAllThrowables()
|
java.lang.String |
getCurrentDir()
|
void |
setCurrentDir(java.lang.String currentDir)
|
| Methods inherited from class com.enterprisedt.net.ftp.async.AsyncResult |
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 |
ConnectResult
public ConnectResult()
addTask
public void addTask(com.enterprisedt.net.ftp.async.internal.ConnectTask task)
getCurrentDir
public java.lang.String getCurrentDir()
setCurrentDir
public void setCurrentDir(java.lang.String currentDir)
cancelTask
public boolean cancelTask()
throws FTPException
- Cancel the asynchronous task that this result is for.
- Overrides:
cancelTask in class AsyncResult
- Returns:
-
- Throws:
FTPException
addThrowable
public void addThrowable(java.lang.Throwable throwable)
getAllThrowables
public java.util.Vector getAllThrowables()
endAsync
public void endAsync()
throws FTPException,
java.io.IOException
- This method is called to complete the asynchronous operation. If the
operation is not completed, this method will block until it has. It
is normally called from within a callback, which ensures that the operation
has indeed already completed.
- Throws:
java.io.IOException
FTPException
Copyright © 2001-2009 Enterprise Distributed Technologies Ltd. All Rights Reserved.