|
|
@ -49,6 +49,10 @@ public class HostUpdateProcessor implements NettyRequestProcessor { |
|
|
|
public void process(Channel channel, Command command) { |
|
|
|
public void process(Channel channel, Command command) { |
|
|
|
Preconditions.checkArgument(CommandType.PROCESS_HOST_UPDATE_REQUEST == command.getType(), String.format("invalid command type : %s", command.getType())); |
|
|
|
Preconditions.checkArgument(CommandType.PROCESS_HOST_UPDATE_REQUEST == command.getType(), String.format("invalid command type : %s", command.getType())); |
|
|
|
HostUpdateCommand updateCommand = JSONUtils.parseObject(command.getBody(), HostUpdateCommand.class); |
|
|
|
HostUpdateCommand updateCommand = JSONUtils.parseObject(command.getBody(), HostUpdateCommand.class); |
|
|
|
|
|
|
|
if (updateCommand == null){ |
|
|
|
|
|
|
|
logger.error("host update command is null"); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
logger.info("received host update command : {}", updateCommand); |
|
|
|
logger.info("received host update command : {}", updateCommand); |
|
|
|
taskCallbackService.changeRemoteChannel(updateCommand.getTaskInstanceId(), new NettyRemoteChannel(channel, command.getOpaque())); |
|
|
|
taskCallbackService.changeRemoteChannel(updateCommand.getTaskInstanceId(), new NettyRemoteChannel(channel, command.getOpaque())); |
|
|
|
|
|
|
|
|
|
|
|