Class KubernetesNodeResourceInfo
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.resources.KubernetesNodeResourceInfo
-
public class KubernetesNodeResourceInfo extends java.lang.Object
A single Kubernetes node and its resources (cpu / memory).
-
-
Constructor Summary
Constructors Constructor Description KubernetesNodeResourceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commitPending()
void
resetPending()
java.lang.String
toString()
boolean
tryRelease(double cpuAmount, double memoryAmount)
boolean
tryReserve(double cpuAmount, org.apache.flink.configuration.MemorySize memoryAmount)
-
-
-
Method Detail
-
tryReserve
public boolean tryReserve(double cpuAmount, org.apache.flink.configuration.MemorySize memoryAmount)
-
commitPending
public void commitPending()
-
resetPending
public void resetPending()
-
tryRelease
public boolean tryRelease(double cpuAmount, double memoryAmount)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-