Receivers don't send the full credits (max_credits), but rather tha actual number of bytes received
- Version:
- $Id: FC.java,v 1.86.2.1 2007/12/18 07:58:17 belaban Exp $
- Author:
- Bela Ban
Fields inherited from class org.jgroups.stack.Protocol |
down_prot, log, props, stack, stats, up_prot |
Methods inherited from class org.jgroups.stack.Protocol |
destroy, downThreadEnabled, enableStats, getDownProtocol, getProperties, getUpProtocol, init, printStats, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, setDownProtocol, setPropertiesInternal, setProtocolStack, setUpProtocol, statsEnabled, upThreadEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FC
public FC()
down
public java.lang.Object down(org.jgroups.Event evt)
- Overrides:
down
in class org.jgroups.stack.Protocol
dumpStats
public java.util.Map<java.lang.String,java.lang.Object> dumpStats()
- Overrides:
dumpStats
in class org.jgroups.stack.Protocol
getAverageTimeBlocked
public double getAverageTimeBlocked()
getLowest_max_credits
public long getLowest_max_credits()
getMaxBlockTime
public long getMaxBlockTime()
getMaxCredits
public long getMaxCredits()
getMinCredits
public long getMinCredits()
getMinThreshold
public double getMinThreshold()
getName
public final java.lang.String getName()
- Specified by:
getName
in class org.jgroups.stack.Protocol
getNumberOfBlockings
public int getNumberOfBlockings()
getNumberOfCreditRequestsReceived
public int getNumberOfCreditRequestsReceived()
getNumberOfCreditRequestsSent
public int getNumberOfCreditRequestsSent()
getNumberOfCreditResponsesReceived
public int getNumberOfCreditResponsesReceived()
getNumberOfCreditResponsesSent
public int getNumberOfCreditResponsesSent()
getTotalTimeBlocked
public long getTotalTimeBlocked()
printCredits
public java.lang.String printCredits()
printReceiverCredits
public java.lang.String printReceiverCredits()
printSenderCredits
public java.lang.String printSenderCredits()
resetStats
public void resetStats()
- Overrides:
resetStats
in class org.jgroups.stack.Protocol
setLowest_max_credits
public void setLowest_max_credits(long lowest_max_credits)
setMaxBlockTime
public void setMaxBlockTime(long t)
setMaxCredits
public void setMaxCredits(long max_credits)
setMinCredits
public void setMinCredits(long min_credits)
setMinThreshold
public void setMinThreshold(double min_threshold)
setProperties
public boolean setProperties(java.util.Properties props)
- Overrides:
setProperties
in class org.jgroups.stack.Protocol
showLastBlockingTimes
public java.lang.String showLastBlockingTimes()
start
public void start()
throws java.lang.Exception
- Overrides:
start
in class org.jgroups.stack.Protocol
- Throws:
java.lang.Exception
stop
public void stop()
- Overrides:
stop
in class org.jgroups.stack.Protocol
unblock
public void unblock()
- Allows to unblock a blocked sender from an external program, e.g. JMX
up
public java.lang.Object up(org.jgroups.Event evt)
- Overrides:
up
in class org.jgroups.stack.Protocol