Package aleph.dir

Examples of aleph.dir.DirectoryManager.release()


      // TODO Auto-generated catch block
      e.printStackTrace();
    } finally{   
      locator.release(account1);
      Logger.debug("Release " + accountNum1);
      locator.release(account2);
      Logger.debug("Release " + accountNum2);
    }
   
    return true;
  }
View Full Code Here


       
        break;
      }catch (TimeoutException e) {
        for(int j=0; j<i; j++){
          if(reservations[j]!=null)
            locator.release(reservations[j]);
        }
      }
    }
    try {
     
View Full Code Here

    } finally{
      for(int i=0; i<reservations.length; i++){
        Reservation reservation = (Reservation)reservations[i];
        if(reservation!=null)
          locator.release(reservation);
      }
      if(customer!=null)
        locator.release(customer);
    }
  }
View Full Code Here

        Reservation reservation = (Reservation)reservations[i];
        if(reservation!=null)
          locator.release(reservation);
      }
      if(customer!=null)
        locator.release(customer);
    }
  }


  public static void deleteCustomer(String customerId){
View Full Code Here

      while(true)
        try{
          Reservation reservation = (Reservation)locator.open(reservationId);
          if(reservation!=null){
            reservation.release();
            locator.release(reservation);
          }
          break;
        }catch (TimeoutException e) {
        }
      locator.delete(reservationInfo);
View Full Code Here

         
        break;
      }catch (TimeoutException e) {
        for(int j=0; j<i; j++){
          if(reservations[j]!=null)
            locator.release(reservations[j]);
        }
      }
    }
    try {
      for(int i=0; i<Benchmark.queryPerTransaction; i++){
View Full Code Here

      }
    } finally{
      for(int i=0; i<reservations.length; i++){
        Reservation reservation = (Reservation)reservations[i];
        if(reservation!=null)
          locator.release(reservation);
      }
    }
  }
}
View Full Code Here

        Logger.debug("Backoff acquired objects ;" + acquiredObjects.size());
        DirectoryManager locator = HyFlow.getLocator();
        Logger.debug("Locator found");
        for(AbstractDistinguishable distinguishable:acquiredObjects){
          Logger.debug("Releasing " + distinguishable);
          locator.release(distinguishable);
          Logger.debug("Released " + distinguishable);
        }
        break;
      } catch (ConcurrentModificationException e) {
        Logger.debug("Conucrrent Exception !!");
View Full Code Here

      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

        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

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.