public class MFC extends FlowControl
FlowControl.Credit| Modifier and Type | Field and Description |
|---|---|
protected CreditMap |
credits
Maintains credits per member
|
protected long |
last_credit_request
Last time a credit request was sent.
|
protected static FcHeader |
MFC_CREDIT_REQUEST_HDR |
protected static FcHeader |
MFC_REPLENISH_HDR |
frag_size, ignore_synchronous_response, local_addr, max_block_time, max_block_times, max_credits, min_credits, min_threshold, num_credit_requests_received, num_credit_requests_sent, num_credit_responses_received, num_credit_responses_sent, received, runningafter_creation_hook, down_prot, ergonomics, id, log, name, stack, stats, up_prot| Constructor and Description |
|---|
MFC() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAverageTimeBlocked() |
protected Header |
getCreditRequestHeader() |
int |
getNumberOfBlockings() |
protected Header |
getReplenishHeader() |
protected void |
handleCredit(Address sender,
long increase) |
protected Object |
handleDownMessage(Event evt,
Message msg,
Address dest,
int length) |
protected boolean |
handleMulticastMessage()
Whether the protocol handles message with dest == null || dest.isMulticastAddress()
|
protected void |
handleViewChange(List<Address> mbrs) |
void |
init()
Called after instance has been created (null constructor) and before protocol is started.
|
protected boolean |
needToSendCreditRequest() |
String |
printCredits() |
String |
printSenderCredits() |
void |
resetStats() |
void |
stop()
This method is called on a
Channel.disconnect(). |
void |
unblock()
Allows to unblock a blocked sender from an external program, e.g.
|
adjustCredit, bufferToLong, down, dumpStats, getMaxBlockTime, getMaxBlockTime, getMaxBlockTimes, getMaxCredits, getMinCredits, getMinThreshold, getNumberOfCreditRequestsReceived, getNumberOfCreditRequestsSent, getNumberOfCreditResponsesReceived, getNumberOfCreditResponsesSent, handleConfigEvent, handleCreditRequest, handleUpEvent, longToBuffer, printMap, printReceiverCredits, sendCredit, sendCreditRequest, setMaxBlockTime, setMaxBlockTimes, setMaxCredits, setMinCredits, setMinThreshold, start, up, upaccept, afterCreationHook, destroy, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, isErgonomics, level, parse, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, setValues, statsEnabledprotected static final FcHeader MFC_REPLENISH_HDR
protected static final FcHeader MFC_CREDIT_REQUEST_HDR
protected CreditMap credits
protected long last_credit_request
public void unblock()
unblock in class FlowControlpublic String printCredits()
printCredits in class FlowControlpublic String printSenderCredits()
printSenderCredits in class FlowControlpublic int getNumberOfBlockings()
getNumberOfBlockings in class FlowControlpublic double getAverageTimeBlocked()
getAverageTimeBlocked in class FlowControlprotected boolean handleMulticastMessage()
FlowControlhandleMulticastMessage in class FlowControlprotected Header getReplenishHeader()
getReplenishHeader in class FlowControlprotected Header getCreditRequestHeader()
getCreditRequestHeader in class FlowControlpublic void init()
throws Exception
Protocolinit in class FlowControlException - Thrown if protocol cannot be initialized successfully. This will cause the
ProtocolStack to fail, so the channel constructor will throw an exceptionpublic void stop()
ProtocolChannel.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 flushedstop in class FlowControlpublic void resetStats()
resetStats in class FlowControlprotected Object handleDownMessage(Event evt, Message msg, Address dest, int length)
handleDownMessage in class FlowControlprotected boolean needToSendCreditRequest()
protected void handleCredit(Address sender, long increase)
handleCredit in class FlowControlprotected void handleViewChange(List<Address> mbrs)
handleViewChange in class FlowControlCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.