Class EBlockParallelTransferContext
java.lang.Object
org.globus.ftp.dc.EBlockParallelTransferContext
- All Implemented Interfaces:
TransferContext
- Direct Known Subclasses:
StripeContextManager.StripeTransferContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intif sending data, this is the total number of EODS we should send.protected intif sending data, this is interpreted as the number of EODS sent.protected static org.apache.commons.logging.Logprotected Objectprotected SocketPoolprivate TransferThreadManagerstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintrelease 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.voidsetEodsTotal(int total) voidvoidsetTransferThreadManager(TransferThreadManager transferThreadManager)
-
Field Details
-
logger
protected static org.apache.commons.logging.Log logger -
socketPool
-
quitToken
-
transferThreadManager
-
UNDEFINED
public static final int UNDEFINED- See Also:
-
eodsTransferred
protected int eodsTransferredif sending data, this is interpreted as the number of EODS sent. If receiving data, this is the number of EODS received. -
eodsTotal
protected int eodsTotalif sending data, this is the total number of EODS we should send. if receiving data, this is the total number of EODS we are expecting.
-
-
Constructor Details
-
EBlockParallelTransferContext
public EBlockParallelTransferContext()
-
-
Method Details
-
eodTransferred
public void eodTransferred() -
getEodsTransferred
public int getEodsTransferred() -
setEodsTotal
public void setEodsTotal(int total) -
getEodsTotal
public int getEodsTotal() -
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. So this method will return non-null only one in the instance's lifetime.- Specified by:
getQuitTokenin interfaceTransferContext- Returns:
- a non-null token is a permission for closing, null means no permission.
-
setSocketPool
-
getSocketPool
-
setTransferThreadManager
-
getTransferThreadManager
-