use of com.alibaba.otter.shared.communication.model.config.FindTaskEvent in project otter by alibaba.
the class NodeTaskServiceImpl method initNodeTask.
private void initNodeTask() {
// 从manager下获取一下对应的任务列表
Node node = configClientService.currentNode();
FindTaskEvent event = new FindTaskEvent();
event.setNid(node.getId());
Object obj = nodeCommmunicationClient.callManager(event);
if (obj != null) {
List<Channel> channels = (List<Channel>) obj;
for (Channel channel : channels) {
// 排除已经分配过的task
processNodeTask(channel);
}
}
}
Aggregations