mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 06:30:44 +08:00
rename interface and class for task assigner based on suitable pattern. (#6664)
This commit is contained in:
+3
-3
@@ -24,11 +24,11 @@ public class JobSchedulerImpl implements JobScheduler {
|
||||
private Plan plan;
|
||||
private Map<String, Object> jobConfig;
|
||||
private ResourceManager resourceManager;
|
||||
private ITaskAssign taskAssign;
|
||||
private TaskAssigner taskAssigner;
|
||||
|
||||
public JobSchedulerImpl() {
|
||||
this.resourceManager = new ResourceManager();
|
||||
this.taskAssign = new TaskAssignImpl();
|
||||
this.taskAssigner = new TaskAssignerImpl();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -42,7 +42,7 @@ public class JobSchedulerImpl implements JobScheduler {
|
||||
Ray.init();
|
||||
|
||||
List<RayActor<JobWorker>> workers = this.resourceManager.createWorkers(getPlanWorker());
|
||||
ExecutionGraph executionGraph = this.taskAssign.assign(this.plan, workers);
|
||||
ExecutionGraph executionGraph = this.taskAssigner.assign(this.plan, workers);
|
||||
|
||||
List<ExecutionNode> executionNodes = executionGraph.getExecutionNodeList();
|
||||
List<RayObject<Boolean>> waits = new ArrayList<>();
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import org.ray.streaming.runtime.worker.JobWorker;
|
||||
/**
|
||||
* Interface of the task assigning strategy.
|
||||
*/
|
||||
public interface ITaskAssign extends Serializable {
|
||||
public interface TaskAssigner extends Serializable {
|
||||
|
||||
/**
|
||||
* Assign logical plan to physical execution graph.
|
||||
+1
-1
@@ -17,7 +17,7 @@ import org.ray.streaming.runtime.core.processor.ProcessBuilder;
|
||||
import org.ray.streaming.runtime.core.processor.StreamProcessor;
|
||||
import org.ray.streaming.runtime.worker.JobWorker;
|
||||
|
||||
public class TaskAssignImpl implements ITaskAssign {
|
||||
public class TaskAssignerImpl implements TaskAssigner {
|
||||
|
||||
/**
|
||||
* Assign an optimized logical plan to execution graph.
|
||||
Reference in New Issue
Block a user