|
|
|
@ -28,6 +28,7 @@ import org.apache.dolphinscheduler.server.worker.config.WorkerConfig;
|
|
|
|
|
import org.apache.dolphinscheduler.server.worker.plugin.TaskPluginManager; |
|
|
|
|
import org.apache.dolphinscheduler.server.worker.processor.DBTaskAckProcessor; |
|
|
|
|
import org.apache.dolphinscheduler.server.worker.processor.DBTaskResponseProcessor; |
|
|
|
|
import org.apache.dolphinscheduler.server.worker.processor.HostUpdateProcessor; |
|
|
|
|
import org.apache.dolphinscheduler.server.worker.processor.TaskExecuteProcessor; |
|
|
|
|
import org.apache.dolphinscheduler.server.worker.processor.TaskKillProcessor; |
|
|
|
|
import org.apache.dolphinscheduler.server.worker.registry.WorkerRegistryClient; |
|
|
|
@ -140,6 +141,7 @@ public class WorkerServer implements IStoppable {
|
|
|
|
|
this.nettyRemotingServer.registerProcessor(CommandType.TASK_KILL_REQUEST, new TaskKillProcessor()); |
|
|
|
|
this.nettyRemotingServer.registerProcessor(CommandType.DB_TASK_ACK, new DBTaskAckProcessor()); |
|
|
|
|
this.nettyRemotingServer.registerProcessor(CommandType.DB_TASK_RESPONSE, new DBTaskResponseProcessor()); |
|
|
|
|
this.nettyRemotingServer.registerProcessor(CommandType.PROCESS_HOST_UPDATE_REQUEST, new HostUpdateProcessor()); |
|
|
|
|
this.nettyRemotingServer.start(); |
|
|
|
|
|
|
|
|
|
// worker registry
|
|
|
|
|