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 Double
calculateFreeCounter(Double totalCounter, Double inUseCounter)
static Double
decreaseCounter(HashMap<String,Double> counter, String keyName)
static Double
getCounter(HashMap<String,Double> counter, String keyName)
static Jenkins
getJenkins()
static Double
getNodeExecutorNum(Executor executor)
static String
getNodeName(Executor executor)
static Double
increaseCounter(HashMap<String,Double> counter, String keyName)
static Double
setCounter(HashMap<String,Double> counter, String keyName, Double value)
static Double
setCounterIfNotExists(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)
-
-