package com.friday.distributor.scheduler;

import com.friday.base.common.response.DubboResult;
import com.friday.blank.api.dto.taskType.TaskTypeMachineDto;
import com.friday.distributor.bean.Job;

/**
 * @Author YaoYao
 * @Date Created In 11:09 2023/2/27
 * @Description 执行调度器
 * @Modified By
 */
public abstract class ExecScheduler {
    //分配机器执行
    public abstract DubboResult<TaskTypeMachineDto> distributeExecRobot(Job job, String strategy);

    //回收执行机器
    public abstract DubboResult freeExecRobot(Job job, String strategy);

}
