}
public Dispatcher(String ip, int port, String localIp, int localPort)
{
this.port = localPort;
this.manager = new TransportMessageManagerSocket(this.port);
this.nodes = new ArrayList<INodeConfig>();
this.messages = new LinkedList<IMessage>();
this.pools = new ArrayList<ResultPool>();
this.counterNodeId = 0;
this.counterPoolId = 0;