Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.netio.tcp
Class TcpStreamChannel
com.newstep.solid.netio.AbstractCommChannel
  |
  +--com.newstep.solid.netio.AbstractStreamChannel
       |
       +--com.newstep.solid.netio.tcp.TcpStreamChannel
All Implemented Interfaces:
       CommChannel, DataIoListener, StreamChannel

public class TcpStreamChannel      
Implements:
DataIoListener
 
Links:
Kernel Association Association Link
to Class TcpChannelEndpoint
Associates type:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
protected
Custom properties
link:
aggregationByValue
 
Kernel Association Association Link
to Class TcpChannelEndpoint
Associates type:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
protected
Custom properties
link:
aggregationByValue
 
Kernel Association Association Link
to Class TcpStreamAccessPoint
Associates type:
aggregation
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregation
 
Kernel Association Association Link
to Class SelectorThread
Associates type:
association
Client cardinality:
0..*
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Implementation Implementation Link
to Interface DataIoListener
 
Generalization Generalization Link
to Class AbstractStreamChannel
 
 

Field Summary
protected final static String
protected static Logger
protected SocketChannel
private ReentrantLock
private ConcurrentLinkedQueue
Constructor Summary
void
Method Summary
public void
protected void
protected void
public void
public void
public long
read(ByteBuffer data)
public int
read(ByteBuffer data)
void
void
public String
void
public void
write(ByteBuffer payLoad)
public void
write(ByteBuffer payLoad)
Field Detail
className
protected final static String className
Final.
Multiplicity:
1
Static.
 

localEndpoint
protected TcpChannelEndpoint localEndpoint
Multiplicity:
1
 

localEndpoint
TcpChannelEndpoint localEndpoint
 

logger
protected static Logger logger
Multiplicity:
1
Static.
 

mother
private TcpStreamAccessPoint mother
Multiplicity:
1
 

remoteEndpoint
protected TcpChannelEndpoint remoteEndpoint
Multiplicity:
1
 

remoteEndpoint
TcpChannelEndpoint remoteEndpoint
 

selectorThread
private SelectorThread selectorThread
Multiplicity:
1
 

socketChannel
protected SocketChannel socketChannel
Multiplicity:
1
 

writeLock
private ReentrantLock writeLock
Multiplicity:
1
 

writeQueue
private ConcurrentLinkedQueue writeQueue
Multiplicity:
1
 
Constructor Detail
TcpStreamChannel
void TcpStreamChannel (TcpStreamAccessPoint mom, SocketChannel sChannel, TcpChannelEndpoint local, TcpChannelEndpoint remote)
 
Stereotype:
create
 
Method Detail
close
public void close ()
 
 

disable
protected void disable ()
 
 

enable
protected void enable ()
 
 

getLocalEndpoint
public TcpChannelEndpoint getLocalEndpoint ()
 
 

getRemoteEndpoint
public TcpChannelEndpoint getRemoteEndpoint ()
 
 

onRead
public void onRead ()
 
 

onWrite
public void onWrite ()
 
 

read
public long read (ByteBuffer data)
 
Throws:
IOException
 

read
public int read (ByteBuffer data)
 
Throws:
IOException
 

setLocalEndpoint
void setLocalEndpoint (TcpChannelEndpoint localEndpoint)
 
 

setRemoteEndpoint
void setRemoteEndpoint (TcpChannelEndpoint remoteEndpoint)
 
 

toString
public String toString ()
 
 

updateState
void updateState (CommChannelState newState)
 
 

write
public void write (ByteBuffer payLoad)
 
Throws:
IOException
 

write
public void write (ByteBuffer payLoad)
 
Throws:
IOException
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD