Class NoopResourceCheck
- java.lang.Object
-
- org.apache.flink.autoscaler.resources.NoopResourceCheck
-
- All Implemented Interfaces:
ResourceCheck
public class NoopResourceCheck extends java.lang.Object implements ResourceCheck
Noop implementation for checking for available resources.
-
-
Constructor Summary
Constructors Constructor Description NoopResourceCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
trySchedule(int currentInstances, int newInstances, double numCpu, org.apache.flink.configuration.MemorySize numMemory)
Simulates scheduling the provided number of TaskManager instances.
-
-
-
Method Detail
-
trySchedule
public boolean trySchedule(int currentInstances, int newInstances, double numCpu, org.apache.flink.configuration.MemorySize numMemory)
Description copied from interface:ResourceCheck
Simulates scheduling the provided number of TaskManager instances.- Specified by:
trySchedule
in interfaceResourceCheck
- Parameters:
currentInstances
- The current number of instances.newInstances
- The new number of instances.numCpu
- The number of CPU per instances.numMemory
- The total memory size per instances.- Returns:
- true if a scheduling configuration was found, false otherwise.
-
-