@Deprecated public class NAKACK extends Protocol implements Retransmitter.RetransmitCommand, DiagnosticsHandler.ProbeHandler
Modifier and Type | Field and Description |
---|---|
protected BoundedList<Message> |
become_server_queue
Deprecated.
|
protected int |
become_server_queue_size
Deprecated.
|
protected BoundedList<java.lang.String> |
digest_history
Deprecated.
Keeps a bounded list of the last N digest sets
|
protected int |
num_messages_received
Deprecated.
|
protected int |
num_messages_sent
Deprecated.
|
protected boolean |
print_stability_history_on_failed_xmit
Deprecated.
When not finding a message on an XMIT request, include the last N stability messages in the error message
|
protected BoundedList<java.lang.String> |
stability_msgs
Deprecated.
Keeps the last 10 stability messages
|
protected SuppressLog<Address> |
suppress_log_non_member
Deprecated.
Log to suppress identical warnings for messages from non-members
|
protected long |
suppress_time_non_member_warnings
Deprecated.
|
protected long |
xmit_stagger_timeout
Deprecated.
|
after_creation_hook, down_prot, ergonomics, id, log, name, stack, stats, up_prot
Constructor and Description |
---|
NAKACK()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkForRebroadcasts()
Deprecated.
|
void |
clearNonMemberCache()
Deprecated.
|
void |
compact()
Deprecated.
|
java.lang.Object |
down(Event evt)
Deprecated.
Callback.
|
java.util.Map<java.lang.String,java.lang.Object> |
dumpStats()
Deprecated.
|
protected void |
flushBecomeServerQueue()
Deprecated.
Flushes the queue.
|
long |
getCurrentSeqno()
Deprecated.
|
Digest |
getDigest()
Deprecated.
Returns a message digest: for each member P the highest delivered and received seqno is added
|
Digest |
getDigest(Address mbr)
Deprecated.
|
boolean |
getLogDiscardMessages()
Deprecated.
|
int |
getNonMemberMessages()
Deprecated.
|
int |
getPendingXmitRequests()
Deprecated.
|
long |
getSizeOfAllMessages()
Deprecated.
|
long |
getSizeOfAllMessagesInclHeaders()
Deprecated.
|
NakReceiverWindow |
getWindow(Address mbr)
Deprecated.
Please don't use this method; it is only provided for unit testing !
|
long |
getXmitRequestsReceived()
Deprecated.
|
long |
getXmitRequestsSent()
Deprecated.
|
long |
getXmitResponsesReceived()
Deprecated.
|
long |
getXmitResponsesSent()
Deprecated.
|
int |
getXmitTableMissingMessages()
Deprecated.
|
int |
getXmitTableSize()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
handleProbe(java.lang.String... keys)
Deprecated.
Handles a probe.
|
void |
init()
Deprecated.
Called after instance has been created (null constructor) and before protocol is started.
|
boolean |
isDiscardDeliveredMsgs()
Deprecated.
|
protected static boolean |
isGreaterThanOrEqual(Digest first,
Digest other)
Deprecated.
Returns true if all senders of the current digest have their seqnos >= the ones from other
|
boolean |
isUseMcastXmit()
Deprecated.
|
boolean |
isXmitFromRandomMember()
Deprecated.
|
java.lang.String |
printDigestHistory()
Deprecated.
|
java.lang.String |
printLossRates()
Deprecated.
|
java.lang.String |
printMessages()
Deprecated.
|
java.lang.String |
printRetransmitStats()
Deprecated.
|
java.lang.String |
printRetransmitTableSizes()
Deprecated.
|
java.lang.String |
printStabilityHistory()
Deprecated.
|
java.lang.String |
printStabilityMessages()
Deprecated.
|
java.lang.String |
printStats()
Deprecated.
|
java.util.List<java.lang.Integer> |
providedUpServices()
Deprecated.
List of events that are provided to layers above (they will be handled when sent down from above)
|
void |
resetStats()
Deprecated.
|
void |
retransmit(long first_seqno,
long last_seqno,
Address sender)
Deprecated.
Implementation of Retransmitter.RetransmitCommand.
|
protected void |
retransmit(long first_seqno,
long last_seqno,
Address sender,
boolean multicast_xmit_request)
Deprecated.
|
protected void |
send(Event evt,
Message msg)
Deprecated.
Adds the message to the sent_msgs table and then passes it down the stack.
|
void |
setDiscardDeliveredMsgs(boolean discard_delivered_msgs)
Deprecated.
|
void |
setLogDiscardMessages(boolean flag)
Deprecated.
|
void |
setLogDiscardMsgs(boolean flag)
Deprecated.
|
void |
setTimer(TimeScheduler timer)
Deprecated.
Only used for unit tests, don't use !
|
void |
setUseMcastXmit(boolean use_mcast_xmit)
Deprecated.
|
void |
setXmitFromRandomMember(boolean xmit_from_random_member)
Deprecated.
|
void |
start()
Deprecated.
This method is called on a
Channel.connect(String) . |
void |
stop()
Deprecated.
This method is called on a
Channel.disconnect() . |
java.lang.String[] |
supportedKeys()
Deprecated.
Returns a list of supported keys
|
java.lang.Object |
up(Event evt)
Deprecated.
Callback.
|
accept, afterCreationHook, destroy, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, isErgonomics, level, parse, providedDownServices, requiredDownServices, requiredUpServices, resetStatistics, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, statsEnabled, up
protected long xmit_stagger_timeout
protected boolean print_stability_history_on_failed_xmit
protected int become_server_queue_size
protected long suppress_time_non_member_warnings
protected int num_messages_sent
protected int num_messages_received
protected final BoundedList<java.lang.String> stability_msgs
protected final BoundedList<java.lang.String> digest_history
protected BoundedList<Message> become_server_queue
protected SuppressLog<Address> suppress_log_non_member
public int getNonMemberMessages()
public void clearNonMemberCache()
public long getXmitRequestsReceived()
public long getXmitRequestsSent()
public long getXmitResponsesReceived()
public long getXmitResponsesSent()
public int getPendingXmitRequests()
public int getXmitTableSize()
public int getXmitTableMissingMessages()
public long getSizeOfAllMessages()
public long getSizeOfAllMessagesInclHeaders()
public long getCurrentSeqno()
public java.lang.String printRetransmitStats()
public NakReceiverWindow getWindow(Address mbr)
mbr
- public void setTimer(TimeScheduler timer)
timer
- public void resetStats()
resetStats
in class Protocol
public void init() throws java.lang.Exception
Protocol
public boolean isUseMcastXmit()
public void setUseMcastXmit(boolean use_mcast_xmit)
public boolean isXmitFromRandomMember()
public void setXmitFromRandomMember(boolean xmit_from_random_member)
public boolean isDiscardDeliveredMsgs()
public void setDiscardDeliveredMsgs(boolean discard_delivered_msgs)
public void setLogDiscardMessages(boolean flag)
public void setLogDiscardMsgs(boolean flag)
public boolean getLogDiscardMessages()
public java.util.Map<java.lang.String,java.lang.Object> dumpStats()
public java.lang.String printStats()
printStats
in class Protocol
public java.lang.String printStabilityMessages()
public java.lang.String printStabilityHistory()
public java.lang.String printDigestHistory()
public java.lang.String printLossRates()
public java.lang.String printRetransmitTableSizes()
public void compact()
public java.util.List<java.lang.Integer> providedUpServices()
Protocol
providedUpServices
in class Protocol
public void start() throws java.lang.Exception
Protocol
Channel.connect(String)
. Starts work.
Protocols are connected and queues are ready to receive events.
Will be called from bottom to top. This call will replace
the START and START_OK events.start
in class Protocol
java.lang.Exception
- Thrown if protocol cannot be started successfully. This will cause the ProtocolStack
to fail, so Channel.connect(String)
will throw an exceptionpublic void stop()
Protocol
Channel.disconnect()
. Stops work (e.g. by closing multicast socket).
Will be called from top to bottom. This means that at the time of the method invocation the
neighbor protocol below is still working. This method will replace the
STOP, STOP_OK, CLEANUP and CLEANUP_OK events. The ProtocolStack guarantees that
when this method is called all messages in the down queue will have been flushedpublic java.lang.Object down(Event evt)
Do not use down_prot.down()
in this
method as the event is passed down by default by the superclass after this method returns !
public java.lang.Object up(Event evt)
Do not use PassUp
in this
method as the event is passed up by default by the superclass after this method returns !
protected void send(Event evt, Message msg)
protected void flushBecomeServerQueue()
ClientGmsImpl.installView(org.jgroups.View,org.jgroups.util.Digest)
method (called when a view is installed).protected void checkForRebroadcasts()
protected static boolean isGreaterThanOrEqual(Digest first, Digest other)
public Digest getDigest()
public void retransmit(long first_seqno, long last_seqno, Address sender)
retransmit
in interface Retransmitter.RetransmitCommand
first_seqno
- The sequence number of the first missing messagelast_seqno
- The sequence number of the last missing messagesender
- The destination of the member to which the retransmit request will be sent
(nak-based scheme), or to which the message will be retransmitted (ack-based scheme).protected void retransmit(long first_seqno, long last_seqno, Address sender, boolean multicast_xmit_request)
public java.lang.String printMessages()
public java.util.Map<java.lang.String,java.lang.String> handleProbe(java.lang.String... keys)
DiagnosticsHandler.ProbeHandler
handleProbe
in interface DiagnosticsHandler.ProbeHandler
public java.lang.String[] supportedKeys()
DiagnosticsHandler.ProbeHandler
supportedKeys
in interface DiagnosticsHandler.ProbeHandler
Copyright © 1998-2020 Red Hat. All Rights Reserved.