public class SlotManagerConfiguration extends Object
SlotManager
.Constructor and Description |
---|
SlotManagerConfiguration(Time taskManagerRequestTimeout,
Time taskManagerTimeout,
Duration requirementCheckDelay,
Duration declareNeededResourceDelay,
boolean waitResultConsumedBeforeRelease,
TaskManagerOptions.TaskManagerLoadBalanceMode taskManagerLoadBalanceMode,
WorkerResourceSpec defaultWorkerResourceSpec,
int numSlotsPerWorker,
int minSlotNum,
int maxSlotNum,
CPUResource minTotalCpu,
CPUResource maxTotalCpu,
MemorySize minTotalMem,
MemorySize maxTotalMem,
int redundantTaskManagerNum) |
Modifier and Type | Method and 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() |
Time |
getTaskManagerRequestTimeout() |
Time |
getTaskManagerTimeout() |
boolean |
isWaitResultConsumedBeforeRelease() |
public SlotManagerConfiguration(Time taskManagerRequestTimeout, Time taskManagerTimeout, Duration requirementCheckDelay, Duration declareNeededResourceDelay, boolean waitResultConsumedBeforeRelease, TaskManagerOptions.TaskManagerLoadBalanceMode taskManagerLoadBalanceMode, WorkerResourceSpec defaultWorkerResourceSpec, int numSlotsPerWorker, int minSlotNum, int maxSlotNum, CPUResource minTotalCpu, CPUResource maxTotalCpu, MemorySize minTotalMem, MemorySize maxTotalMem, int redundantTaskManagerNum)
public Time getTaskManagerRequestTimeout()
public Time getTaskManagerTimeout()
public Duration getRequirementCheckDelay()
public Duration getDeclareNeededResourceDelay()
public boolean isWaitResultConsumedBeforeRelease()
public TaskManagerOptions.TaskManagerLoadBalanceMode getTaskManagerLoadBalanceMode()
public WorkerResourceSpec getDefaultWorkerResourceSpec()
public int getNumSlotsPerWorker()
public int getMinSlotNum()
public int getMaxSlotNum()
public CPUResource getMinTotalCpu()
public CPUResource getMaxTotalCpu()
public MemorySize getMinTotalMem()
public MemorySize getMaxTotalMem()
public int getRedundantTaskManagerNum()
public static SlotManagerConfiguration fromConfiguration(Configuration configuration, WorkerResourceSpec defaultWorkerResourceSpec) throws ConfigurationException
ConfigurationException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.