Package edu.vt.rt.hyflow.benchmark.rmi.list

Examples of edu.vt.rt.hyflow.benchmark.rmi.list.INode.lock()


    String lastId = null;
    try{
      tailServer = (Address) Network.getAddress(Benchmark.getServerId(TAIL));
      tail = (INode)LocateRegistry.getRegistry(tailServer.inetAddress.getHostAddress(), tailServer.port).lookup(TAIL);
      Network.linkDelay(true, tailServer);
      tail.lock();
      Network.linkDelay(true, tailServer);
      lastId = tail.getNext();    //Got Id for last node in queue
     
      lastServer = (Address) Network.getAddress(Benchmark.getServerId(lastId));
      last = (INode)LocateRegistry.getRegistry(lastServer.inetAddress.getHostAddress(), lastServer.port).lookup(lastId);
View Full Code Here


     
      //Get the Dummy Node
      nexServer = (Address) Network.getAddress(Benchmark.getServerId(nextId));
      next = (INode)LocateRegistry.getRegistry(nexServer.inetAddress.getHostAddress(), nexServer.port).lookup(nextId);
      Network.linkDelay(true, nexServer);
      next.lock();
      Network.linkDelay(true, server);
      firstId = next.getNext();
     
      //If dummy nodes next is empty
      if(firstId == null){
View Full Code Here

     
      //Get dummy node in queue
      predServer = (Address) Network.getAddress(Benchmark.getServerId(predId));
      pred = (INode)LocateRegistry.getRegistry(predServer.inetAddress.getHostAddress(), predServer.port).lookup(predId);
      Network.linkDelay(true, predServer);
      pred.lock();
      Network.linkDelay(true, predServer);
      firstId = pred.getNext();
     
      //Check if queue is Empty
      if(firstId == null){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.