public class UFC extends FlowControl
FlowControl.Credit
限定符和类型 | 字段和说明 |
---|---|
protected Average |
avg_block_time |
protected java.util.Map<Address,FlowControl.Credit> |
sent
Map: keys are members, values are credits left.
|
CREDIT_REQUEST_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, REPLENISH_HDR, running
构造器和说明 |
---|
UFC() |
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
dumpStats() |
double |
getAverageTimeBlocked() |
int |
getNumberOfBlockings() |
protected void |
handleCredit(Address sender,
long increase) |
protected java.lang.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(java.util.List<Address> mbrs) |
void |
init()
Called after instance has been created (null constructor) and before protocol is started.
|
java.lang.String |
printCredits() |
java.lang.String |
printSenderCredits() |
void |
resetStats() |
void |
stop()
This method is called on a
Channel.disconnect() . |
void |
unblock()
Allows to unblock all blocked senders from an external program, e.g.
|
adjustCredit, down, getMaxBlockTime, getMaxBlockTime, getMaxBlockTimes, getMaxCredits, getMinCredits, getMinThreshold, getNumberOfCreditRequestsReceived, getNumberOfCreditRequestsSent, getNumberOfCreditResponsesReceived, getNumberOfCreditResponsesSent, handleConfigEvent, handleCreditRequest, handleUpEvent, printMap, printReceiverCredits, sendCredit, sendCreditRequest, setMaxBlockTime, setMaxBlockTimes, setMaxCredits, setMinCredits, setMinThreshold, start, up, up
accept, destroy, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, 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, statsEnabled
protected final java.util.Map<Address,FlowControl.Credit> sent
protected final Average avg_block_time
public java.lang.String printSenderCredits()
printSenderCredits
在类中 FlowControl
public java.lang.String printCredits()
printCredits
在类中 FlowControl
public java.util.Map<java.lang.String,java.lang.Object> dumpStats()
dumpStats
在类中 FlowControl
protected boolean handleMulticastMessage()
FlowControl
handleMulticastMessage
在类中 FlowControl
public void unblock()
FlowControl
unblock
在类中 FlowControl
public int getNumberOfBlockings()
getNumberOfBlockings
在类中 FlowControl
public double getAverageTimeBlocked()
getAverageTimeBlocked
在类中 FlowControl
public void init() throws java.lang.Exception
Protocol
init
在类中 FlowControl
java.lang.Exception
- Thrown if protocol cannot be initialized successfully. This will cause the
ProtocolStack to fail, so the channel constructor 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 flushedstop
在类中 FlowControl
public void resetStats()
resetStats
在类中 FlowControl
protected java.lang.Object handleDownMessage(Event evt, Message msg, Address dest, int length)
handleDownMessage
在类中 FlowControl
protected void handleViewChange(java.util.List<Address> mbrs)
handleViewChange
在类中 FlowControl
protected void handleCredit(Address sender, long increase)
handleCredit
在类中 FlowControl