| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.comm.rtt
|
Class HeartBeatAckElement
|
|
|
+--com.newstep.solid.comm.rtt.HeartBeatAckElement
public class HeartBeatAckElement
This ProtocolElement deals with sending/receiving the heartbeat. It keeps a
copy of all sent messages and if the heartbeat does not come in time, asks
the redundant protocol element to retransmit it on the other channel.
Implements:
ChannelStatusListener
TimerListener
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
Kernel Association Association Link
Associates type:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregationByValue
Implementation Implementation Link
This ProtocolElement deals with sending/receiving the heartbeat. It keeps a
copy of all sent messages and if the heartbeat does not come in time, asks
the redundant protocol element to retransmit it on the other channel.
Generalization Generalization Link
This ProtocolElement deals with sending/receiving the heartbeat. It keeps a
copy of all sent messages and if the heartbeat does not come in time, asks
the redundant protocol element to retransmit it on the other channel.
Implementation Implementation Link
This ProtocolElement deals with sending/receiving the heartbeat. It keeps a
copy of all sent messages and if the heartbeat does not come in time, asks
the redundant protocol element to retransmit it on the other channel.
| Field Summary |
|
|
private int |
|
private static String |
|
private final static long |
|
private final static long |
|
private int |
|
private int |
|
private int |
|
private long |
|
|
|
|
|
| Constructor Summary |
public void |
|
| Method Summary |
public void |
|
public long |
|
private int |
|
private int |
|
private int |
|
|
|
private void |
|
private void |
|
public void |
|
public void |
|
private void |
|
public void |
|
public void |
|
public void |
|
public String |
|
public synchronized void |
|
private int channelId
Multiplicity:
1
private static String className
Multiplicity:
1
Static.
private final static long DELAY
Final.
Multiplicity:
1
Static.
private final static long HEARTBEAT
Final.
Multiplicity:
1
Static.
private int nextAck
Multiplicity:
1
private int nextExpectedSeq
Multiplicity:
1
private int nextSendSeq
Multiplicity:
1
Custom properties
associates:
com.newstep.solid.comm.rtt.RttMessage
__supplierQualifier_1:
0..*
private long pulse
Multiplicity:
1
Multiplicity:
1
Multiplicity:
1
public void HeartBeatAckElement (Channel subChannel)
Stereotype:
create
public void close ()
Channel Interface. Propagates the close downstream
Throws:
ChannelException
public long getChannelId ()
private int getNextAck ()
private int getNextExpectedSeq ()
private int getNextSendSeq ()
Returns the role of this element
Return:
Type
private void incrementNextExpectedSeq ()
private void incrementNextSendSeq ()
public void onMessage (Message message)
Channel Interface. Receives a message from the channel bellow it process
it and it propagates it upstream.
public void open ()
Channle Interface. Propagates the OPEN downstream
Throws:
ChannelException
private void setNextAck (Integer nr)
public void setRole (Type role)
Assigns the role of this element
ChannelListener interface. Status change notifications
public void timerExpired ()
TimerListener interface; looks after the heartbeat
public String toString ()
public synchronized void write (Message message)
Channel Interface. Writes a message to the channel
Synchronized.
Throws:
ChannelException
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|