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

Examples of org.apache.uima.ducc.transport.event.common.IDuccReservationMap


                //     break;
                   
                case Reservation:
                    {
                        IDuccWorkReservation de = (IDuccWorkReservation) w;
                        IDuccReservationMap  rm = de.getReservationMap();

                        logger.info(methodName, w.getDuccId(), "Receive:", prefix, w.getDuccType(), w.getStateObject(), "processes[", rm.size(), "] Completed:", w.isCompleted());
                       
                        for ( IDuccReservation r: rm.values()) {
                            Node n = r.getNode();                       
                            if ( n == null ) {
                                logger.info(methodName, w.getDuccId(),
                                            "    Node [N/A] mem[N/A");
                            } else {
View Full Code Here


    String methodName = "tryAssignment";
    synchronized(nodeMap) {
      if(duccWorkReservation != null) {
        if(duccWorkReservation.isDispatchable()) {
          if(!duccWorkReservation.getReservationMap().isEmpty()) {
            IDuccReservationMap map = duccWorkReservation.getReservationMap();
            if(!map.isEmpty()) {
              keyList = new ArrayList<String>();
              nodeMap = new TreeMap<String,NodeIdentity>();
              for (DuccId key : map.keySet()) {
                IDuccReservation value = duccWorkReservation.getReservationMap().get(key);
                NodeIdentity node = value.getNodeIdentity();
                addNode(node);
                logger.info(methodName, null, messages.fetchLabel("assigned")+node.getName()+" "+node.getIp());
              }
View Full Code Here

    sb = new StringBuffer();
    TreeMap<String,Integer> nodeMap = new TreeMap<String,Integer>();
    if(duccwork instanceof DuccWorkReservation) {
      DuccWorkReservation reservation = (DuccWorkReservation) duccwork;
      if(!reservation.getReservationMap().isEmpty()) {
        IDuccReservationMap map = reservation.getReservationMap();
        for (DuccId key : map.keySet()) {
          IDuccReservation value = reservation.getReservationMap().get(key);
          String node = value.getNodeIdentity().getName();
          if(!nodeMap.containsKey(node)) {
            nodeMap.put(node,new Integer(0));
          }
View Full Code Here

    sb.append("<td align=\"right\">");
    TreeMap<String,Integer> nodeMap = new TreeMap<String,Integer>();
    if(duccwork instanceof DuccWorkReservation) {
      DuccWorkReservation reservation = (DuccWorkReservation) duccwork;
      if(!reservation.getReservationMap().isEmpty()) {
        IDuccReservationMap map = reservation.getReservationMap();
        for (DuccId key : map.keySet()) {
          IDuccReservation value = reservation.getReservationMap().get(key);
          String node = value.getNodeIdentity().getName();
          if(!nodeMap.containsKey(node)) {
            nodeMap.put(node,new Integer(0));
          }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.event.common.IDuccReservationMap

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.