Class
Use
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.netio.rtt
Class RttAccessPoint.ListeningServer
All Implemented Interfaces:
       ConnectionListener

class RttAccessPoint.ListeningServer      
RttAccessPoint delegates listening on the specific RttEndpoint to ListeningServer
Implements:
ConnectionListener
 
Links:
Kernel Association Association Link
to Class RttAccessPoint
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
package
 
Kernel Association Association Link
to Class RttEndpoint
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
package
 
Kernel Association Association Link
to Interface ConnectionListener
Associates type:
association
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
package
 
Implementation Implementation Link
to Interface ConnectionListener
RttAccessPoint delegates listening on the specific RttEndpoint to ListeningServer
 
 

Field Summary
int
TimerTask
TimerTask
ReentrantLock
Constructor Summary
protected void
ListeningServer(RttEndpoint endpoint, ConnectionListener listener, Integer count)
Method Summary
private void
protected synchronized void
protected synchronized void
protected void
public void
protected void
protected void
protected void
Field Detail
accessPoint
RttAccessPoint accessPoint
Multiplicity:
1
 

connectionListener
ConnectionListener connectionListener
Multiplicity:
1
 

counter
int counter
Multiplicity:
1
 

localEndpoint
RttEndpoint localEndpoint
Multiplicity:
1
 

retryListeningPrimary
TimerTask retryListeningPrimary
Multiplicity:
1
 

retryListeningSecondary
TimerTask retryListeningSecondary
Multiplicity:
1
 

retryLock
ReentrantLock retryLock
Multiplicity:
1
 
Constructor Detail
ListeningServer
protected void ListeningServer (RttEndpoint endpoint, ConnectionListener listener, Integer count)
 
Stereotype:
create
 
Method Detail
accept
private void accept (RttServerChannel channel)
 
Accepts new RTT connection, or rejects it if there is already connection with the same
host id
Parameters:
channel
 

decrementConnectCounter
protected synchronized void decrementConnectCounter ()
 
Decrements the allowed connections counter and stops listening when no more connections
are allowed. Does nothing if the number of allowed connectins is unlimited.
Synchronized.
 

incrementConnectCounter
protected synchronized void incrementConnectCounter ()
 
Increments the allowed connections counter. Does nothing if the number of allowed
connectins is unlimited.
Synchronized.
 

listen
protected void listen ()
 
Starts listening for connections on both tcp channels
 

newConnection
public void newConnection (CommChannel channel)
 
Gets notified when a tcp channel connects
Parameters:
channel
newly connected tcp channel
 

register
protected void register (RttServerChannel channel)
 
Registeres the first half channel (ID_NEW)
Parameters:
channel
 

reWire
protected void reWire (RttServerChannel channel)
 
Merges two rtt half channels into one
Parameters:
channel
the second half channel (ID_EXTRA)
 

stop
protected void stop ()
 
Stops listening on both tcp channels
 

Class
Use
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD