Class IOControl
- java.lang.Object
-
- org.objectweb.joram.mom.proxies.tcp.IOControl
-
public class IOControl extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classIOControl.NetOutputStream(package private) classIOControl.Reader
-
Field Summary
Fields Modifier and Type Field Description private BufferedInputStreambisprivate static booleanDEBUGprivate longinputCounterprivate static Loggerlogger(package private) booleannoAckedQueueprivate IOControl.NetOutputStreamnosprivate IOControl.Readerreaderprivate longreceivedCountprivate LinkedBlockingQueue<byte[]>receiveQueueprivate longsentCountprivate Socketsockprivate intunackCounterprivate intwindowSize
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetReceivedCount()intgetreceiveQueueSize()longgetSentCount()(package private) SocketgetSocket()ProxyMessagereceive()voidsend(ProxyMessage msg)voidsetNoAckedQueue(boolean noAckedQueue)
-
-
-
Field Detail
-
logger
private static final Logger logger
-
DEBUG
private static final boolean DEBUG
-
inputCounter
private long inputCounter
-
sock
private Socket sock
-
nos
private IOControl.NetOutputStream nos
-
bis
private BufferedInputStream bis
-
windowSize
private int windowSize
-
unackCounter
private int unackCounter
-
receivedCount
private long receivedCount
-
sentCount
private long sentCount
-
receiveQueue
private LinkedBlockingQueue<byte[]> receiveQueue
-
reader
private IOControl.Reader reader
-
noAckedQueue
boolean noAckedQueue
-
-
Constructor Detail
-
IOControl
public IOControl(Socket sock) throws IOException
- Throws:
IOException
-
IOControl
public IOControl(Socket sock, long inputCounter) throws IOException
- Throws:
IOException
-
-
Method Detail
-
send
public void send(ProxyMessage msg) throws IOException
- Throws:
IOException
-
setNoAckedQueue
public void setNoAckedQueue(boolean noAckedQueue)
-
receive
public ProxyMessage receive() throws Exception
- Throws:
Exception
-
close
public void close()
-
getSocket
Socket getSocket()
-
getSentCount
public long getSentCount()
-
getReceivedCount
public long getReceivedCount()
-
getreceiveQueueSize
public int getreceiveQueueSize()
-
-