Class ClusterResourceView
- java.lang.Object
-
- org.apache.flink.kubernetes.operator.resources.ClusterResourceView
-
public class ClusterResourceView extends java.lang.Object
A view on Kubernetes cluster resources by nodes and their cpu/memory.
-
-
Constructor Summary
Constructors Constructor Description ClusterResourceView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelPending()
void
commit()
void
release(double cpu, org.apache.flink.configuration.MemorySize memory)
java.lang.String
toString()
boolean
tryReserve(double cpu, org.apache.flink.configuration.MemorySize memory)
-
-
-
Method Detail
-
tryReserve
public boolean tryReserve(double cpu, org.apache.flink.configuration.MemorySize memory)
-
release
public void release(double cpu, org.apache.flink.configuration.MemorySize memory)
-
commit
public void commit()
-
cancelPending
public void cancelPending()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-