| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.comm.rtt
|
Class RttChannelAccessPoint
|
|
|
+--com.newstep.solid.comm.rtt.RttChannelAccessPoint
public class RttChannelAccessPoint
Creates RTT Channels in two flavours: client and server. The client RTT
channel is delivered in the IDLE state, i.e. open() has to be called to
connect it to some host. To set up an RTT server the application has first to
setup a listener for connections using the listen() method. A server RTT
channel is created on accepting a connection from a client.
Implements:
ChannelAccessPointListener
ChannelStatusListener
ManagedExecutableListener
Links:
Kernel Association Association Link
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
associates:
TCPChannelAccessPoint
Implementation Implementation Link
Creates RTT Channels in two flavours: client and server. The client RTT
channel is delivered in the IDLE state, i.e. open() has to be called to
connect it to some host. To set up an RTT server the application has first to
setup a listener for connections using the listen() method. A server RTT
channel is created on accepting a connection from a client.
Generalization Generalization Link
Creates RTT Channels in two flavours: client and server. The client RTT
channel is delivered in the IDLE state, i.e. open() has to be called to
connect it to some host. To set up an RTT server the application has first to
setup a listener for connections using the listen() method. A server RTT
channel is created on accepting a connection from a client.
Implementation Implementation Link
Creates RTT Channels in two flavours: client and server. The client RTT
channel is delivered in the IDLE state, i.e. open() has to be called to
connect it to some host. To set up an RTT server the application has first to
setup a listener for connections using the listen() method. A server RTT
channel is created on accepting a connection from a client.
Implementation Implementation Link
Creates RTT Channels in two flavours: client and server. The client RTT
channel is delivered in the IDLE state, i.e. open() has to be called to
connect it to some host. To set up an RTT server the application has first to
setup a listener for connections using the listen() method. A server RTT
channel is created on accepting a connection from a client.
| Field Summary |
private static int |
|
private List |
|
private final static String |
|
private int |
|
private boolean |
|
private boolean |
|
private ConcurrentHashMap |
|
private static Logger |
|
private int |
|
|
|
| Constructor Summary |
public void |
|
| Method Summary |
public void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
public void |
|
|
|
|
|
public void |
|
public void |
|
public void |
|
public void |
|
|
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
private static int channelNumber
Multiplicity:
1
Static.
private List channels
Multiplicity:
1
private final static String className
Final.
Multiplicity:
1
Static.
private int hostId
Multiplicity:
1
private boolean init
Multiplicity:
1
private boolean isShutDown
Multiplicity:
1
private ConcurrentHashMap listeners
Multiplicity:
1
private static Logger logger
Multiplicity:
1
Static.
private int thisChannel
Multiplicity:
1
Multiplicity:
1
Custom properties
associates:
TCPChannelAccessPoint
Stereotype:
create
Callback to notify when stopping or shutdown from the channel access
points underneath is done
protected void doResume ()
Pass down to the TCP Channel Access Point
Throws:
ExecutableException
protected void doShutdown ()
Waits for all the channels to close and then passes down to the TCP
Channel Access Point
Throws:
ExecutableException
protected void doStart ()
Pass down to the TCP Channel Access Point
Throws:
ExecutableException
protected void doStop ()
Pass down to the TCP Channel Access Point
Throws:
ExecutableException
protected void doSuspend ()
Pass down to the TCP Channel Access Point
Throws:
ExecutableException
Finds the host id stored in the address of this channel
Parameters:
address
Return:
Address
Creates an RttChannel with a client role; client code has to open the
channel in order to connect;
Parameters:
address
Host where the client channel connects to
Return:
Channel
Throws:
ChannelException
Initializes the channelAccessPoint and Propagates the configuration file
to the transport access point
Parameters:
config
Starts listening to an address.
Parameters:
address
to listen to : must be a Host ChannelAccessPointListener - a
listener to be notified when a new connection is accepted -
can be null if nobody is to be notified int connections -
number of connections the RTT server can accept : 0 is
unlimited
Throws:
ChannelException
public void notify (Channel channel)
ChannelAccessPointListener interface; called by the transport access
point when a client connection is accepted Creates a new RTT channel of
server role and adds it in the RTTChannelsTable Propagates the notify if
there is a listener to this channel access point
Parameters:
channel -
the channel that accepted a connection
Throws:
ChannelException
public Address parseString (String string)
Address interface. Converts a string to an address of type Host
Parameters:
string
Return:
Address of type Host
Throws:
ChannelException
Callback to be notified when the channel access point is running
Listens for IDENT message on the RttChannel and notifies the listener
that a new RttChannel of role server has been created
public void stopListen (Address address)
Stops listening to an address
Parameters:
address
the address to stop listening to
Throws:
ChannelException
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|