Examples of checkBalance()


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

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

     
      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

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

     
      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

Examples of edu.vt.rt.hyflow.benchmark.tm.bank.BankAccount.checkBalance()

      System.out.println("Sleep till transactions complete");
      Thread.sleep(10000);
      for(int i=1; i<args.length; i++){
       
        BankAccount account = (BankAccount)locator.open(args[i], "r");
        System.out.println(account.checkBalance());
        locator.release(account);

        BankAccount account2 = (BankAccount)locator.open(args[i], "r");
        System.out.println(account2.checkBalance());
        locator.release(account2);
View Full Code Here

Examples of edu.vt.rt.hyflow.benchmark.tm.bank.BankAccount.checkBalance()

        BankAccount account = (BankAccount)locator.open(args[i], "r");
        System.out.println(account.checkBalance());
        locator.release(account);

        BankAccount account2 = (BankAccount)locator.open(args[i], "r");
        System.out.println(account2.checkBalance());
        locator.release(account2);
      }
    }
   
    System.out.println("Test complete");
View Full Code Here

Examples of edu.vt.rt.hyflow.benchmark.tm.bank.BankAccount.checkBalance()

    // Check results
    Thread.sleep(1000);
    for(int i=1; i<args.length; i++){
      BankAccount account = (BankAccount)HyFlow.getLocator().open(args[i], "r");
      System.out.println(account.checkBalance());
      locator.release(account);
    }
   
    System.out.println("Complete Test");
  }
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.