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

com.newstep.solid.netio
Class AccessPoint
Direct Known Subclasses:
       PacketChannelAccessPoint, RttAccessPoint, SlipAccessPoint, TcpIpAccessPoint, TestTransportAccessPoint

public abstract class AccessPoint      
Abstract.
 
Links:
Kernel Association Association Link
to Class ChannelAccessPointConfig
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
protected
 
 

Field Summary
Method Summary
public abstract ChannelEndpoint
getEndpoint(String text)
public abstract void
listen(ChannelEndpoint localEndpoint, ConnectionListener connectionListener, Integer numberOfConnections)
public abstract CommChannel
openChannel(ChannelEndpoint remoteEndpoint, CommChannelStateListener connectionListener)
public abstract CommChannel
openChannel(ChannelEndpoint remoteEndpoint, Integer timeout)
public abstract CommChannel
openChannel(ChannelEndpoint remoteEndpoint, CommChannelListener dataListener)
public abstract void
Field Detail
config
protected ChannelAccessPointConfig config
Multiplicity:
1
 
Method Detail
getEndpoint
public abstract ChannelEndpoint getEndpoint (String text)
 
Convenience method to create a proper endpoint object from it's string representation
Parameters:
text
string representation of the endpoint as it would be returned by Endpoint.toString()
Return:
the newly constructed endpoint
Abstract.
Throws:
IOException
 

listen
public abstract void listen (ChannelEndpoint localEndpoint, ConnectionListener connectionListener, Integer numberOfConnections)
 
Abstract.
Throws:
IOException
Custom properties
link:
dependency
 

openChannel
public abstract CommChannel openChannel (ChannelEndpoint remoteEndpoint, CommChannelStateListener connectionListener)
 
Asynchoronously opens a channel to the remote endpoint. After a successfull return, the channel is in the OPENED
state but possibly not CONNECTED. When the channel transitions from open to connected connectionListener is
notified
Parameters:
remoteEndpoint
endpoint to open the channel to
connectionListener
listener to notify about channel's state changes
Abstract.
Throws:
IOException
 

openChannel
public abstract CommChannel openChannel (ChannelEndpoint remoteEndpoint, Integer timeout)
 
Synchoronously opens a channel to the remote endpoint. After a successfull return, the channel is fully
functional for both sending and receiving (state=CONNECTED). Returns when the channel is open or the timeout
expires
Parameters:
remoteEndpoint
endpoint to open the channel to
timeout
to wait for channel to become connected in milliseconds
Abstract.
Throws:
IOException
 

openChannel
public abstract CommChannel openChannel (ChannelEndpoint remoteEndpoint, CommChannelListener dataListener)
 
Synchoronously opens a channel to the remote endpoint. After a successfull return, the channel is fully
functional for both sending and receiving (state=CONNECTED). It does not return until the channel is connected or
it fails
Parameters:
remoteEndpoint
endpoint to open the channel to
dataListener
listener to be notified of incomming data. CommChannelListener is a marker interface, no concrete
class implements it. Concrete classes implement derived interfaces StreamListener and MessageListener
Abstract.
Throws:
IOException
 

stopListening
public abstract void stopListening (ChannelEndpoint localEndpoint)
 
Stops listening on the endpoint
Parameters:
localEndpoint
endpoint to stop listening on
Abstract.
 

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