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

com.newstep.solid.comm.udp
Class UDPChannelAccessPoint
com.newstep.solid.management.runtime.AsyncManagedExecutable
  |
  +--com.newstep.solid.comm.ChannelAccessPoint
       |
       +--com.newstep.solid.comm.udp.UDPChannelAccessPoint
All Implemented Interfaces:
       IOHandler, ManagedExecutable

public class UDPChannelAccessPoint      
Implements:
IOHandler
 
Links:
Kernel Association Association Link
to Class Multiplexor
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Kernel Association Association Link
to Class ByteBufferPool
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
 
Generalization Generalization Link
to Class ChannelAccessPoint
 
Implementation Implementation Link
to Interface IOHandler
 
 

Field Summary
private List
private ConcurrentHashMap
private static Logger
private Multiplexor
Constructor Summary
protected void
Method Summary
protected void
protected void
protected void
public Channel
public int
private DatagramChannel
public IPAddress
getRemoteAddress(DatagramChannel channel)
public void
public void
listen(Address address, ChannelAccessPointListener listener, Integer connections)
public void
onAccept(SelectionKey key)
public void
onClosed(SelectableChannel channel)
public void
public void
public void
onRead(SelectionKey key)
public void
onWrite(SelectionKey key)
public Address
parseString(String string)
public void
Field Detail
channels
private List channels
Multiplicity:
1
 

listeners
private ConcurrentHashMap listeners
Multiplicity:
1
 

logger
private static Logger logger
Multiplicity:
1
Static.
 

mux
private Multiplexor mux
Multiplicity:
1
 

pool
private ByteBufferPool pool
Multiplicity:
1
 
Constructor Detail
UDPChannelAccessPoint
protected void UDPChannelAccessPoint (ChannelFactory channelFactory)
 
Stereotype:
create
 
Method Detail
doShutdown
protected void doShutdown ()
 
Throws:
ExecutableException
 

doStart
protected void doStart ()
 
Throws:
ExecutableException
 

doStop
protected void doStop ()
 
Throws:
ExecutableException
 

getChannel
public Channel getChannel (Address address)
 
Returns a UDP channel that can be used to send messaged to the specified
address Channel has to be opened before writing to it
Parameters:
address
Address
Return:
Channel
Throws:
ChannelException
 

getInterestedOps
public int getInterestedOps ()
 
 

getListeningChannel
private DatagramChannel getListeningChannel (Address address)
 
 

getRemoteAddress
public IPAddress getRemoteAddress (DatagramChannel channel)
 
 

init
public void init (CommConfig config)
 
 

listen
public void listen (Address address, ChannelAccessPointListener listener, Integer connections)
 
Throws:
ChannelException
 

onAccept
public void onAccept (SelectionKey key)
 
Throws:
ChannelException
 

onClosed
public void onClosed (SelectableChannel channel)
 
 

onConnect
public void onConnect ()
 
Throws:
ChannelException
 

onDone
public void onDone ()
 
 

onRead
public void onRead (SelectionKey key)
 
Throws:
ChannelException
 

onWrite
public void onWrite (SelectionKey key)
 
Throws:
ChannelException
 

parseString
public Address parseString (String string)
 
Throws:
ChannelException
 

stopListen
public void stopListen (Address address)
 
 

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