java.lang.Object
com.illumon.iris.db.tables.remotequery.process.kubernetes.CpuValidation
public class CpuValidation
extends Object
Verify that a Kubernetes CPU shares value is not implausibly large.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CpuValidation
public CpuValidation()
-
Method Details
-
checkCpuShares
public static void checkCpuShares(double cpuShares)
- Parameters:
cpuShares
- cpuShares represented as 1.0 is one core
- Throws:
IllegalArgumentException
- if CPU shares exceeds MAX_CPU_SHARES.