Package org.apache.uima.ducc.transport.event.common.IDuccState

Examples of org.apache.uima.ducc.transport.event.common.IDuccState.ReservationState


          case Reservation:
            logger.debug(methodName, duccId, messages.fetch("processing reservation..."));
            DuccWorkReservation duccWorkReservation = (DuccWorkReservation) duccWork;
            changes += reservationMapResourcesAdd(duccWorkReservation,rmResourceState.getPendingAdditions());
            changes += reservationMapResourcesDel(duccWorkReservation,rmResourceState.getPendingRemovals());
            ReservationState reservationState = duccWorkReservation.getReservationState();
            switch(reservationState) {
            case Received:
              logger.warn(methodName, duccId, messages.fetchLabel("unexpected state")+reservationState);
              break;
            case WaitingForResources:
View Full Code Here


  }
 
  public boolean stateChange(ReservationState state) {
    String methodName = "stateChange";
    boolean retVal = false;
    ReservationState prev = getReservationState();
    ReservationState next = state;
    switch(prev) {
    case Assigned:
      retVal = stateChangeFromAssigned(prev, next);
      break;
    case Completed:
View Full Code Here

      int counter = 0;
      nextReservation:
      while(iterator.hasNext()) {
        ReservationInfo reservationInfo = iterator.next().getValue();
        DuccWorkReservation reservation = reservationInfo.getReservation();
        ReservationState reservationState = reservation.getReservationState();
        switch(requestStateType) {
        case All:
          break;
        case Active:
          switch(reservationState) {
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.event.common.IDuccState.ReservationState

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.