Package org.globus.ftp.dc
Class StripeContextManager.StripeTransferContext
- java.lang.Object
-
- org.globus.ftp.dc.EBlockParallelTransferContext
-
- org.globus.ftp.dc.StripeContextManager.StripeTransferContext
-
- All Implemented Interfaces:
TransferContext
- Enclosing class:
- StripeContextManager
class StripeContextManager.StripeTransferContext extends EBlockParallelTransferContext
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StripeContextManager
mgr
-
Fields inherited from class org.globus.ftp.dc.EBlockParallelTransferContext
eodsTotal, eodsTransferred, logger, quitToken, socketPool, UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description StripeTransferContext(StripeContextManager mgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getQuitToken()
release the token if and only if (all EODS have been sent, or all EODS have been received), and the token has not been released yet.java.lang.Object
getStripeQuitToken()
-
Methods inherited from class org.globus.ftp.dc.EBlockParallelTransferContext
eodTransferred, getEodsTotal, getEodsTransferred, getSocketPool, getTransferThreadManager, setEodsTotal, setSocketPool, setTransferThreadManager
-
-
-
-
Field Detail
-
mgr
StripeContextManager mgr
-
-
Constructor Detail
-
StripeTransferContext
public StripeTransferContext(StripeContextManager mgr)
-
-
Method Detail
-
getStripeQuitToken
public java.lang.Object getStripeQuitToken()
- Returns:
- non-null if this stripe received or sent all the EODs
-
getQuitToken
public java.lang.Object getQuitToken()
Description copied from class:EBlockParallelTransferContext
release the token if and only if (all EODS have been sent, or all EODS have been received), and the token has not been released yet. So this method will return non-null only one in the instance's lifetime.- Specified by:
getQuitToken
in interfaceTransferContext
- Overrides:
getQuitToken
in classEBlockParallelTransferContext
- Returns:
- non-null if all EODs in all stripes have been transferred.
-
-