Package aleph.dir

Examples of aleph.dir.DirectoryManager.release()


//    locator.release(account1);
   
    System.out.println("Acquire2");
    BankAccount account2 = (BankAccount)locator.open("5-123");
    System.out.println("Release2");
    locator.release(account1);
   
    System.out.println("Complete Test");
    System.exit(0);
  }
}
View Full Code Here


    for(int i=1; i<args.length; i++){
        BankAccount account = (BankAccount)locator.open(args[i]);
        if(account!=null){
          account.deposit(50);
          System.out.println(account.withdraw(10*Integer.parseInt(args[0])));
          locator.release(account);
        }
        else
          System.out.println("Account " + args[i] + " is not found!");
      }

View Full Code Here

    // 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

        DirectoryManager locator = HyFlow.getLocator();
        for(AbstractDistinguishable distinguishable:acquiredObjects){
          if(incrementVersion)
            ((AbstractLoggableObject)distinguishable).__incVersion();
          ((AbstractLoggableObject)distinguishable).__release();
          locator.release(distinguishable);
          Logger.debug("Release :" + distinguishable.getId());
        }
      } finally {
        if(clear){
          Logger.debug(txnId + ": Remove from registery");
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.