Package mephi.cybernetics.dhcn.common.data.result

Examples of mephi.cybernetics.dhcn.common.data.result.NewPoolResultConfig


                }
               
                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;
                }
               
View Full Code Here


         this.sender.writeData(new MNodeFree(this.id));
    }
   
    public void createPoll(int sizePool, int taskId, int targetId, int numOfMeaasge, ArrayList<DataTask> list)
    {
        NewPoolResultConfig config = new NewPoolResultConfig(sizePool, this.id, taskId,targetId, numOfMeaasge);
        config.addListTask(list);
        this.sender.writeData(config);
    }
View Full Code Here

TOP

Related Classes of mephi.cybernetics.dhcn.common.data.result.NewPoolResultConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.