Interface ResourceCheck
-
- All Known Implementing Classes:
ClusterResourceManager
,NoopResourceCheck
public interface ResourceCheck
An interface for checking the available capacity of the underlying resources.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
trySchedule(int currentInstances, int newInstances, double cpuPerInstance, org.apache.flink.configuration.MemorySize memoryPerInstance)
Simulates scheduling the provided number of TaskManager instances.
-
-
-
Method Detail
-
trySchedule
boolean trySchedule(int currentInstances, int newInstances, double cpuPerInstance, org.apache.flink.configuration.MemorySize memoryPerInstance)
Simulates scheduling the provided number of TaskManager instances.- Parameters:
currentInstances
- The current number of instances.newInstances
- The new number of instances.cpuPerInstance
- The number of CPU per instances.memoryPerInstance
- The total memory size per instances.- Returns:
- true if a scheduling configuration was found, false otherwise.
-
-