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

Examples of edu.vt.rt.hyflow.benchmark.rmi.list.Node


  private static final String HEAD = "0-queueStart";
  private static final String TAIL = "0-queueEnd";

  public void createQueue() throws AccessException, RemoteException, NotBoundException, InterruptedException {
   
      Node front = new Node(HEAD, -1)// create the head Node
      Node end = new Node(TAIL, -1);    // create the end Node
      Node dmy = new Node("0-dummy",-1);    // create a dummy Node
     
      front.setNext("0-dummy");
      end.setNext("0-dummy");
      dmy.setNext(null);
   
  }
View Full Code Here


      Network.linkDelay(true, lastServer);
      last.lock();
      Network.linkDelay(true, lastServer);
     
      String newNodeId =  Network.getInstance().getID() + "-" + Math.random()// generate random id
      Node newNode = new Node(newNodeId, item);
      newNode.setNext(null);
     
      tail.setNext(newNodeId);
      Network.linkDelay(true, tailServer);
     
      last.setNext(newNodeId);
View Full Code Here

TOP

Related Classes of edu.vt.rt.hyflow.benchmark.rmi.list.Node

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.