com.newstep.solid.netio.rtt
|
+--com.newstep.solid.netio.rtt.RttAccessPoint
public class RttAccessPoint
RttAccessPoint provides access to RttChannels. Fully implements AccessPoint interface
Links:
Kernel Association Association Link
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
Generalization Generalization Link
RttAccessPoint provides access to RttChannels. Fully implements AccessPoint interface
| Nested Class Summary |
class |
|
| Field Summary |
private String |
|
protected final static String |
|
private final static long |
|
protected HashMap |
|
protected HashMap |
|
protected int |
|
|
|
|
|
int |
|
|
|
TimerTask |
|
TimerTask |
|
ReentrantLock |
|
private HashMap |
|
protected ReentrantLock |
|
protected static Logger |
|
protected HashMap |
|
private Timer |
|
|
|
| Constructor Summary |
protected void |
|
void |
|
| Method Summary |
void |
|
protected boolean |
|
|
|
private void |
|
public void |
|
private void |
|
protected synchronized void |
|
protected synchronized void |
|
protected void |
|
public void |
|
protected void |
|
protected void |
|
protected void |
|
|
|
|
|
|
|
void |
|
private Thread |
|
void |
|
public void |
|
private String accesPointName
Multiplicity:
1
protected final static String className
Final.
Multiplicity:
1
Static.
CONNECTION_RETRY_INTERVAL
private final static long CONNECTION_RETRY_INTERVAL
Final.
Multiplicity:
1
Static.
protected HashMap establishedChannels
Multiplicity:
1
protected HashMap halfChannels
Multiplicity:
1
protected int hostId
Multiplicity:
1
private HashMap listeningServers
Multiplicity:
1
protected ReentrantLock lock
Multiplicity:
1
protected static Logger logger
Multiplicity:
1
Static.
protected HashMap reconnectingChannels
Multiplicity:
1
private Timer rttTimer
Multiplicity:
1
Multiplicity:
1
Stereotype:
create
Cleans up the resources after the channel. Invoked from within the RttChannel.close()
Parameters:
channel
the closing channel
Helper operation used by several openChannel methods to actualy connect the channel after all
the checks have been made
Parameters:
rc
RttClientChannel to connect
remoteEndpoint
where to connect it
messageListener
an optional message listener to be set upon connection
Return:
true for full or partial success, false if both tcp channels failed
Throws:
IOException
private void initializeTimer ()
Creates a timer and schedules a dummy timer task for immediate execution in order to raise
the priority of the timer thread to its groups max priority
Throws:
IOException
Throws:
IOException
Throws:
IOException
Throws:
IOException
Tries to establish a lost connection on one of the redundant tcp channels by either
reconnecting the client channel or starting to listen for connection retry on a server
channel
Parameters:
channel
tcpChannel
primary
Creates a thread which periodically tries to connect the failed tcp channel
Parameters:
channel
RttClientChannel to retry the connection for
endpoint
TcpChannelEndpoint to connect
primary
true if primary tcp channel, false if secondary
void scheduleHeartbeat (TimerTask tt)
Schedules a heartbeat timer task
Parameters:
tt
heartbeat timer task