Package edu.vt.rt.hyflow.benchmark.realtimermi.bank.rw

Examples of edu.vt.rt.hyflow.benchmark.realtimermi.bank.rw.IBankAccount.checkBalance()


        if(i%node==j){
          try {
            Address server1 = (Address) Network.getAddress(Benchmark.getServerId(j+"-"+i));
            account = (IBankAccount)LocateRegistry.getRegistry(server1.inetAddress.getHostAddress(), server1.port).lookup(j+"-"+i);
            account.rLock();
            balance+=account.checkBalance();
            account.rUnlock();
          } catch (RemoteException e) {
            e.printStackTrace();
          } catch (NotBoundException e) {
            e.printStackTrace();
View Full Code Here


     
      edu.vt.rt.hyflow.benchmark.Benchmark.processingDelay();
     
      for(int i=0; i<Benchmark.calls; i++){
        Network.linkDelay(true, server2);
        balance += subAccount2.checkBalance();
      }
      Logger.debug("Out");
     
      return balance;
    } catch (AccessException e) {
View Full Code Here

     
      edu.vt.rt.hyflow.benchmark.Benchmark.processingDelay();
     
      for(int i=0; i<Benchmark.calls; i++){
        Network.linkDelay(true, server2);
        balance += subAccount2.checkBalance(deadline.getSeconds(), deadline.getNanoseconds(), period_ts.getSeconds(), period_ts.getNanoseconds());
      }

      Logger.debug("Out");
      //Logger.fetal("Succeeded [" + subAccountNum1 + ", " +subAccountNum2 + "]");
      return balance;
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.