public class EBlockParallelTransferContext extends Object implements TransferContext
Modifier and Type | Field and Description |
---|---|
protected int |
eodsTotal
if sending data, this is the total number of EODS we should send.
|
protected int |
eodsTransferred
if sending data, this is interpreted as the number of EODS
sent.
|
protected static org.apache.commons.logging.Log |
logger |
protected Object |
quitToken |
protected SocketPool |
socketPool |
static int |
UNDEFINED |
Constructor and Description |
---|
EBlockParallelTransferContext() |
Modifier and Type | Method and Description |
---|---|
void |
eodTransferred() |
int |
getEodsTotal() |
int |
getEodsTransferred() |
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.
|
SocketPool |
getSocketPool() |
TransferThreadManager |
getTransferThreadManager() |
void |
setEodsTotal(int total) |
void |
setSocketPool(SocketPool sp) |
void |
setTransferThreadManager(TransferThreadManager transferThreadManager) |
protected static org.apache.commons.logging.Log logger
protected SocketPool socketPool
protected Object quitToken
public static final int UNDEFINED
protected int eodsTransferred
protected int eodsTotal
public void eodTransferred()
public int getEodsTransferred()
public void setEodsTotal(int total)
public int getEodsTotal()
public Object getQuitToken()
getQuitToken
in interface TransferContext
public void setSocketPool(SocketPool sp)
public SocketPool getSocketPool()
public void setTransferThreadManager(TransferThreadManager transferThreadManager)
public TransferThreadManager getTransferThreadManager()
Copyright © 2016. All rights reserved.