Package org.jboss.modcluster.load.impl
Interface DynamicLoadBalanceFactorProviderMBean
- All Known Implementing Classes:
DynamicLoadBalanceFactorProvider
public interface DynamicLoadBalanceFactorProviderMBean
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the exponential decay factor.int
Returns the history count.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 Details
-
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
-
getMetrics
Returns the load metrics registered with this provider- Returns:
- a collection of load metrics
-