Package org.jboss.modcluster.load.impl
Interface DynamicLoadBalanceFactorProviderMBean
-
- All Known Implementing Classes:
DynamicLoadBalanceFactorProvider
public interface DynamicLoadBalanceFactorProviderMBean
- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getDecayFactor()
Returns the exponential decay factor.int
getHistory()
Returns the history count.Map<String,Double>
getMetrics()
Returns the load metrics registered with this providervoid
setDecayFactor(float decayFactor)
Sets the exponential decay factor to be applied to historical load values.void
setHistory(int history)
Sets the number of historical load values to consider when calculating the load balance factor.
-
-
-
Method Detail
-
getHistory
int getHistory()
Returns the history count.- Returns:
- a positive integer
-
getDecayFactor
float getDecayFactor()
Returns the exponential decay factor.- Returns:
- a positive integer
-
setHistory
void setHistory(int history)
Sets the number of historical load values to consider when calculating the load balance factor.- Parameters:
history
-
-
setDecayFactor
void setDecayFactor(float decayFactor)
Sets the exponential decay factor to be applied to historical load values.- Parameters:
decayFactor
- the new decay factor
-
-