Package org.globus.ftp.vanilla
Class TransferState
- java.lang.Object
-
- org.globus.ftp.vanilla.TransferState
-
public class TransferState extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TransferState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckError()java.lang.ExceptiongetError()booleanhasError()booleanisDone()booleanisStarted()voidtransferDone()voidtransferError(java.lang.Exception e)voidtransferStarted()voidwaitForEnd()Blocks until the transfer is complete or the transfer fails.voidwaitForStart()Blocks until the transfer begins or the transfer fails to start.
-
-
-
Method Detail
-
transferStarted
public void transferStarted()
-
transferDone
public void transferDone()
-
transferError
public void transferError(java.lang.Exception e)
-
isDone
public boolean isDone()
-
isStarted
public boolean isStarted()
-
waitForEnd
public void waitForEnd() throws ServerException, ClientException, java.io.IOExceptionBlocks until the transfer is complete or the transfer fails.- Throws:
ServerExceptionClientExceptionjava.io.IOException
-
waitForStart
public void waitForStart() throws ServerException, ClientException, java.io.IOExceptionBlocks until the transfer begins or the transfer fails to start.- Throws:
ServerExceptionClientExceptionjava.io.IOException
-
hasError
public boolean hasError()
-
getError
public java.lang.Exception getError()
-
checkError
public void checkError() throws ServerException, ClientException, java.io.IOException- Throws:
ServerExceptionClientExceptionjava.io.IOException
-
-