Package aleph.dir

Examples of aleph.dir.DirectoryManager.open()


   */
  @Atomic
  @Override
  public boolean contains(E value) {
    DirectoryManager locator = HyFlow.getLocator();
    List<E> list = (List<E>) locator.open(listID, "r");
    return list.contains(value);
  }

  /*
   * (non-Javadoc)
 
View Full Code Here


   */
  @Atomic
  @Override
  public boolean remove(E value) {
    DirectoryManager locator = HyFlow.getLocator();
    List<E> list = (List<E>) locator.open(listID, "w");
    return list.remove(value);
  }

}
View Full Code Here

    DirectoryManager locator = HyFlow.getLocator();
    int node = Network.getInstance().nodesCount();
    for(int i=0; i<localObjectsCount; i++){
      for(int j=0;j<node;j++){
        if(i%node==j){
          balance+=((BankAccount) locator.open(j + "-" + i,"r")).checkBalance()
        }
      }
    }
    if(balance==localObjectsCount*amount)
      Logger.debug("Passed sanity check");
View Full Code Here

    while(true){
      int i=0;
      try {
        for(; i<objId.length; i++)
          try {
            reservations[i] = (Reservation)locator.open(objId[i]);
          } catch (NotRegisteredKeyException e) {
          }
         
        try {
          customer = (Customer)locator.open(customerId);
View Full Code Here

            reservations[i] = (Reservation)locator.open(objId[i]);
          } catch (NotRegisteredKeyException e) {
          }
         
        try {
          customer = (Customer)locator.open(customerId);
        } catch (NotRegisteredKeyException e) {
        }
       
        break;
      }catch (TimeoutException e) {
View Full Code Here

    Customer customer = null;
    DirectoryManager locator = HyFlow.getLocator();
    while(true)
      try{
        try {
          customer = (Customer)locator.open(customerId);
        } catch (NotRegisteredKeyException e) {
          return;
        }
       
        break;
View Full Code Here

      String reservationInfoId = itr.next();
     
      ReservationInfo reservationInfo;
      while(true)
        try{
          reservationInfo = (ReservationInfo)locator.open(reservationInfoId);
          break;
        }catch (TimeoutException e) {
        }
       
      if(reservationInfo==null)
View Full Code Here

      if(reservationInfo==null)
        continue;
      String reservationId = reservationInfo.getReservedResource();
      while(true)
        try{
          Reservation reservation = (Reservation)locator.open(reservationId);
          if(reservation!=null){
            reservation.release();
            locator.release(reservation);
          }
          break;
View Full Code Here

    }
   
    locator.delete(customer);
    Logger.info(">>>>>>>>>>Customer deleted..." + customerId);
    try {
      customer = (Customer)locator.open(customerId);
      System.out.println("How!!!!!!!!!!!!!!");
    } catch (NotRegisteredKeyException e) {
      return;
    }
  }
View Full Code Here

    while(true){
      int i=0;
      try {
        for(; i<objId.length; i++)
          try {
            reservations[i] = (Reservation)locator.open(objId[i]);
          } catch (NotRegisteredKeyException e) {
          }
         
        break;
      }catch (TimeoutException e) {
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.