Class Utils
- java.lang.Object
-
- io.jenkins.plugins.metrics.enhanced.utils.Utils
-
public class Utils extends Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DoublecalculateFreeCounter(Double totalCounter, Double inUseCounter)static DoubledecreaseCounter(HashMap<String,Double> counter, String keyName)static DoublegetCounter(HashMap<String,Double> counter, String keyName)static JenkinsgetJenkins()static DoublegetNodeExecutorNum(Executor executor)static StringgetNodeName(Executor executor)static DoubleincreaseCounter(HashMap<String,Double> counter, String keyName)static DoublesetCounter(HashMap<String,Double> counter, String keyName, Double value)static DoublesetCounterIfNotExists(HashMap<String,Double> counter, String keyName, Double value)
-
-
-
Method Detail
-
calculateFreeCounter
public static Double calculateFreeCounter(Double totalCounter, Double inUseCounter)
-
increaseCounter
public static Double increaseCounter(HashMap<String,Double> counter, String keyName)
-
decreaseCounter
public static Double decreaseCounter(HashMap<String,Double> counter, String keyName)
-
setCounter
public static Double setCounter(HashMap<String,Double> counter, String keyName, Double value)
-
setCounterIfNotExists
public static Double setCounterIfNotExists(HashMap<String,Double> counter, String keyName, Double value)
-
-