类 SystemLoadStrategy
java.lang.Object
org.apache.seatunnel.engine.server.resourcemanager.allocation.strategy.SystemLoadStrategy
- 所有已实现的接口:
SlotAllocationStrategy
SystemLoadStrategy is a strategy that selects the worker with the lowest system load.
-
构造器概要
构造器构造器说明SystemLoadStrategy(Map<com.hazelcast.cluster.Address, org.apache.seatunnel.shade.com.google.common.collect.EvictingQueue<SystemLoadInfo>> workerLoadMap) -
方法概要
修饰符和类型方法说明calculateWeight(WorkerProfile workerProfile, Map<com.hazelcast.cluster.Address, SlotAssignedProfile> workerAssignedSlots) selectWorker(List<WorkerProfile> availableWorkers) voidupdateWorkerLoad(com.hazelcast.cluster.Address address, SystemLoadInfo systemLoadInfo)
-
构造器详细资料
-
SystemLoadStrategy
public SystemLoadStrategy(Map<com.hazelcast.cluster.Address, org.apache.seatunnel.shade.com.google.common.collect.EvictingQueue<SystemLoadInfo>> workerLoadMap) -
SystemLoadStrategy
public SystemLoadStrategy()
-
-
方法详细资料
-
updateWorkerLoad
-
selectWorker
- 指定者:
selectWorker在接口中SlotAllocationStrategy
-
calculateWeight
public Double calculateWeight(WorkerProfile workerProfile, Map<com.hazelcast.cluster.Address, SlotAssignedProfile> workerAssignedSlots)
-