|
|
@ -20,6 +20,7 @@ package org.apache.dolphinscheduler.server.master.dispatch.executor; |
|
|
|
import org.apache.commons.collections.CollectionUtils; |
|
|
|
import org.apache.commons.collections.CollectionUtils; |
|
|
|
import org.apache.dolphinscheduler.remote.NettyRemotingClient; |
|
|
|
import org.apache.dolphinscheduler.remote.NettyRemotingClient; |
|
|
|
import org.apache.dolphinscheduler.remote.command.Command; |
|
|
|
import org.apache.dolphinscheduler.remote.command.Command; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.remote.command.CommandType; |
|
|
|
import org.apache.dolphinscheduler.remote.command.ExecuteTaskRequestCommand; |
|
|
|
import org.apache.dolphinscheduler.remote.command.ExecuteTaskRequestCommand; |
|
|
|
import org.apache.dolphinscheduler.remote.config.NettyClientConfig; |
|
|
|
import org.apache.dolphinscheduler.remote.config.NettyClientConfig; |
|
|
|
import org.apache.dolphinscheduler.remote.entity.TaskExecutionContext; |
|
|
|
import org.apache.dolphinscheduler.remote.entity.TaskExecutionContext; |
|
|
@ -28,6 +29,8 @@ import org.apache.dolphinscheduler.remote.utils.Host; |
|
|
|
import org.apache.dolphinscheduler.server.master.dispatch.context.ExecutionContext; |
|
|
|
import org.apache.dolphinscheduler.server.master.dispatch.context.ExecutionContext; |
|
|
|
import org.apache.dolphinscheduler.server.master.dispatch.enums.ExecutorType; |
|
|
|
import org.apache.dolphinscheduler.server.master.dispatch.enums.ExecutorType; |
|
|
|
import org.apache.dolphinscheduler.server.master.dispatch.exceptions.ExecuteException; |
|
|
|
import org.apache.dolphinscheduler.server.master.dispatch.exceptions.ExecuteException; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.server.master.processor.TaskAckProcessor; |
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.server.master.processor.TaskResponseProcessor; |
|
|
|
import org.apache.dolphinscheduler.server.registry.ZookeeperNodeManager; |
|
|
|
import org.apache.dolphinscheduler.server.registry.ZookeeperNodeManager; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
@ -53,6 +56,8 @@ public class NettyExecutorManager extends AbstractExecutorManager{ |
|
|
|
public NettyExecutorManager(){ |
|
|
|
public NettyExecutorManager(){ |
|
|
|
final NettyClientConfig clientConfig = new NettyClientConfig(); |
|
|
|
final NettyClientConfig clientConfig = new NettyClientConfig(); |
|
|
|
this.nettyRemotingClient = new NettyRemotingClient(clientConfig); |
|
|
|
this.nettyRemotingClient = new NettyRemotingClient(clientConfig); |
|
|
|
|
|
|
|
this.nettyRemotingClient.registerProcessor(CommandType.EXECUTE_TASK_RESPONSE, new TaskResponseProcessor()); |
|
|
|
|
|
|
|
this.nettyRemotingClient.registerProcessor(CommandType.EXECUTE_TASK_ACK, new TaskAckProcessor()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|