Skip to content

Commit

Permalink
MODCLUSTER-607 Add String-based variant of ModClusterListener#setLoad…
Browse files Browse the repository at this point in the history
…DecayFactor(float) to set float decay factor used by Tomcat modeler
  • Loading branch information
rhusar committed Aug 15, 2017
1 parent 313ab7f commit 05c6a69
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -213,6 +213,15 @@ public void setLoadDecayFactor(float decayFactor) {
this.decayFactor = decayFactor;
}

/**
* String-based variant of {@link ModClusterListener#setLoadDecayFactor(float)} to set float decay factor used by Tomcat modeler.
*
* @param decayFactor a positive number
*/
public void setLoadDecayFactor(String decayFactor) {
this.decayFactor = Float.parseFloat(decayFactor);
}

/**
* Returns the number of historic load values used when calculating the load factor.
*
Expand Down

0 comments on commit 05c6a69

Please sign in to comment.