}
if ( NewPoolResultConfig.class.isAssignableFrom(message.getClass()))
{
NewPoolResultConfig config = (NewPoolResultConfig)message;
System.out.println("Pool new Size: " + config.getSizePool() + "TaskId: " + config.getTaskId());
this.pools.add(new ResultPool(config.getSizePool(), config.getTaskId(), this.counterPoolId, config.getTargetId(), false, config.getNumOfMessage()));
for (int i = 0; i < config.getSizePool(); i++)
{
DataTask task = config.getTask(i);
task.setTargetId(this.counterPoolId);
this.messages.add(task);
}
//this.writeMessage(new MNewPoolCreated(this.counterPoolId), config.getNodeId());
this.nodeFree(config.getNodeId());
this.counterPoolId++;
print("Pool create");
continue;
}