|
|
|
@ -117,7 +117,7 @@ public class WorkerServer implements IStoppable {
|
|
|
|
|
NettyServerConfig serverConfig = new NettyServerConfig(); |
|
|
|
|
serverConfig.setListenPort(workerConfig.getListenPort()); |
|
|
|
|
this.nettyRemotingServer = new NettyRemotingServer(serverConfig); |
|
|
|
|
this.nettyRemotingServer.registerProcessor(CommandType.TASK_EXECUTE_REQUEST, new TaskExecuteProcessor()); |
|
|
|
|
this.nettyRemotingServer.registerProcessor(CommandType.TASK_EXECUTE_REQUEST, new TaskExecuteProcessor(alertClientService)); |
|
|
|
|
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()); |
|
|
|
|