Package aleph.comm

Examples of aleph.comm.Address


    }

  @Override
  public int getPrice(Object id, ControlContext context)
      throws RemoteException {
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((ReservationInfo)locator.open(context, id, "r")).getPrice(context);
  }
View Full Code Here


  }

  @Override
  public int getType(Object id, ControlContext context)
      throws RemoteException {
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((ReservationInfo)locator.open(context, id, "r")).getType(context);
  }
View Full Code Here

  }

  @Override
  public String getReservedResource(Object id, ControlContext context)
      throws RemoteException {
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((ReservationInfo)locator.open(context, id, "r")).getReservedResource(context);
  }
View Full Code Here

    locator = HyFlow.getLocator();
    }

  @Override
  public void addReservation(Object id, ControlContext context, ReservationInfo reservation) throws RemoteException {
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    ((Customer)locator.open(context, id, "w")).addReservation(reservation, context);
  }
View Full Code Here

    ((Customer)locator.open(context, id, "w")).addReservation(reservation, context);
  }

  @Override
  public List<String> getReservations(Object id, ControlContext context) throws RemoteException {
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Customer)locator.open(context, id, "r")).getReservations(context);
  }
View Full Code Here

    locator = HyFlow.getLocator();
    }
   
  @Override
  public void setRightChild(Object id, ControlContext context, String rightId){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    ((Node)locator.open(context, id, "w")).setRightChild(rightId, context);
  }
View Full Code Here

    ((Node)locator.open(context, id, "w")).setRightChild(rightId, context);
  }

  @Override
  public String getRightChild(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getRightChild(context);
  }
View Full Code Here

    return ((Node)locator.open(context, id, "r")).getRightChild(context);
  }

  @Override
  public void setLeftChild(Object id, ControlContext context, String leftId){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    ((Node)locator.open(context, id, "w")).setLeftChild(leftId, context);
  }
View Full Code Here

    ((Node)locator.open(context, id, "w")).setLeftChild(leftId, context);
  }

  @Override
  public String getLeftChild(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getLeftChild(context);
  }
View Full Code Here

    return ((Node)locator.open(context, id, "r")).getLeftChild(context);
  }
 
  @Override
  public Integer getValue(Object id, ControlContext context){
    Address caller = ((ControlContext)context).getLastExecuter();
    Network.linkDelay(true, caller);
    ControlContext.getNeighbors(context.getContextId()).add(caller);
    return ((Node)locator.open(context, id, "r")).getValue(context);
  }
View Full Code Here

TOP

Related Classes of aleph.comm.Address

Copyright © 2018 www.massapicom. 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.