Class SlotManagerConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.resourcemanager.slotmanager.SlotManagerConfiguration
-
public class SlotManagerConfiguration extends Object
Configuration for theSlotManager
.
-
-
Constructor Summary
Constructors Constructor Description SlotManagerConfiguration(Duration taskManagerRequestTimeout, Duration taskManagerTimeout, Duration requirementCheckDelay, Duration declareNeededResourceDelay, TaskManagerOptions.TaskManagerLoadBalanceMode taskManagerLoadBalanceMode, WorkerResourceSpec defaultWorkerResourceSpec, int numSlotsPerWorker, int minSlotNum, int maxSlotNum, CPUResource minTotalCpu, CPUResource maxTotalCpu, MemorySize minTotalMem, MemorySize maxTotalMem, int redundantTaskManagerNum)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlotManagerConfiguration
fromConfiguration(Configuration configuration, WorkerResourceSpec defaultWorkerResourceSpec)
Duration
getDeclareNeededResourceDelay()
WorkerResourceSpec
getDefaultWorkerResourceSpec()
int
getMaxSlotNum()
CPUResource
getMaxTotalCpu()
MemorySize
getMaxTotalMem()
int
getMinSlotNum()
CPUResource
getMinTotalCpu()
MemorySize
getMinTotalMem()
int
getNumSlotsPerWorker()
int
getRedundantTaskManagerNum()
Duration
getRequirementCheckDelay()
TaskManagerOptions.TaskManagerLoadBalanceMode
getTaskManagerLoadBalanceMode()
Duration
getTaskManagerRequestTimeout()
Duration
getTaskManagerTimeout()
-
-
-
Constructor Detail
-
SlotManagerConfiguration
public SlotManagerConfiguration(Duration taskManagerRequestTimeout, Duration taskManagerTimeout, Duration requirementCheckDelay, Duration declareNeededResourceDelay, TaskManagerOptions.TaskManagerLoadBalanceMode taskManagerLoadBalanceMode, WorkerResourceSpec defaultWorkerResourceSpec, int numSlotsPerWorker, int minSlotNum, int maxSlotNum, CPUResource minTotalCpu, CPUResource maxTotalCpu, MemorySize minTotalMem, MemorySize maxTotalMem, int redundantTaskManagerNum)
-
-
Method Detail
-
getTaskManagerRequestTimeout
public Duration getTaskManagerRequestTimeout()
-
getTaskManagerTimeout
public Duration getTaskManagerTimeout()
-
getRequirementCheckDelay
public Duration getRequirementCheckDelay()
-
getDeclareNeededResourceDelay
public Duration getDeclareNeededResourceDelay()
-
getTaskManagerLoadBalanceMode
public TaskManagerOptions.TaskManagerLoadBalanceMode getTaskManagerLoadBalanceMode()
-
getDefaultWorkerResourceSpec
public WorkerResourceSpec getDefaultWorkerResourceSpec()
-
getNumSlotsPerWorker
public int getNumSlotsPerWorker()
-
getMinSlotNum
public int getMinSlotNum()
-
getMaxSlotNum
public int getMaxSlotNum()
-
getMinTotalCpu
public CPUResource getMinTotalCpu()
-
getMaxTotalCpu
public CPUResource getMaxTotalCpu()
-
getMinTotalMem
public MemorySize getMinTotalMem()
-
getMaxTotalMem
public MemorySize getMaxTotalMem()
-
getRedundantTaskManagerNum
public int getRedundantTaskManagerNum()
-
fromConfiguration
public static SlotManagerConfiguration fromConfiguration(Configuration configuration, WorkerResourceSpec defaultWorkerResourceSpec) throws ConfigurationException
- Throws:
ConfigurationException
-
-