taskResult.getTaskResultMap().put("INTERRUPTED", "" + taskResult.isInterrupted());
if (!taskResult.isSucess())
{
taskResult.getTaskResultMap().put("ERRORINFO", taskResult.getMessage());
}
Message replyMessage =
Message.createReplyMessage(_message,
_manager.getInstanceName(),
taskResult.getTaskResultMap());
replyMessage.setSrcInstanceType(_manager.getInstanceType());
if (message.getSrcInstanceType() == InstanceType.PARTICIPANT)
{
Builder keyBuilder = accessor.keyBuilder();
accessor.setProperty(keyBuilder.message(message.getMsgSrc(),
replyMessage.getMsgId()),
replyMessage);
}
else if (message.getSrcInstanceType() == InstanceType.CONTROLLER)
{
Builder keyBuilder = accessor.keyBuilder();
accessor.setProperty(keyBuilder.controllerMessage(replyMessage.getMsgId()),
replyMessage);
}
_statusUpdateUtil.logInfo(message, HelixTask.class, "1 msg replied to "
+ replyMessage.getTgtName(), accessor);
}
}