Examples of findDuccWork()


Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

      DuccData duccData = DuccData.getInstance();
      DuccWorkMap duccWorkMap = duccData.getLive();
      Iterator<DuccId> iteratorJ = duccWorkMap.getJobKeySet().iterator();
      while(iteratorJ.hasNext()) {
        DuccId jobid = iteratorJ.next();
        IDuccWorkJob job = (IDuccWorkJob)duccWorkMap.findDuccWork(jobid);
        if(job.isOperational()) {
          int pMemSize = toInt(job.getSchedulingInfo().getShareMemorySize(),1*shareSize);
          long pShareSize = pMemSize/shareSize;
          if(pShareSize <= 0) {
            pShareSize = 1;
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

      DuccData duccData = DuccData.getInstance();
      DuccWorkMap duccWorkMap = duccData.getLive();
      Iterator<DuccId> iteratorS = duccWorkMap.getServiceKeySet().iterator();
      while(iteratorS.hasNext()) {
        DuccId jobid = iteratorS.next();
        IDuccWorkJob service = (IDuccWorkJob)duccWorkMap.findDuccWork(jobid);
        if(service.isOperational()) {
          int pMemSize = toInt(service.getSchedulingInfo().getShareMemorySize(),1*shareSize);
          long pShareSize = pMemSize/shareSize;
          if(pShareSize <= 0) {
            pShareSize = 1;
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

      DuccData duccData = DuccData.getInstance();
      DuccWorkMap duccWorkMap = duccData.getLive();
      Iterator<DuccId> iteratorR = duccWorkMap.getReservationKeySet().iterator();
      while(iteratorR.hasNext()) {
        DuccId reservationId = iteratorR.next();
        IDuccWorkReservation reservation = (IDuccWorkReservation)duccWorkMap.findDuccWork(reservationId);
        if(reservation.isOperational()) {
          IDuccReservationMap reservationMap = reservation.getReservationMap();
          Iterator<DuccId> iteratorS = reservationMap.keySet().iterator();
          while(iteratorS.hasNext()) {
            DuccId spid = iteratorS.next();
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

    long expiryMillis = System.currentTimeMillis()+timeoutMillis+1;
   
    iterator = dwm.getManagedReservationKeySet().iterator();
    while( iterator.hasNext() ) {
      DuccId duccId = iterator.next();
      IDuccWork dw = (IDuccWork)dwm.findDuccWork(duccId);
      gone.remove(duccId);
      if(!mMap.containsKey(duccId)) {
        MonitorInfo monitorInfo = new MonitorInfo();
        mMap.put(duccId, monitorInfo);
        duccLogger.info(location, duccId, "monitor start");
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

    long expiryMillis = System.currentTimeMillis()+timeoutMillis+1;
   
    iterator = dwm.getJobKeySet().iterator();
    while( iterator.hasNext() ) {
      DuccId duccId = iterator.next();
      IDuccWork dw = (IDuccWork)dwm.findDuccWork(duccId);
      gone.remove(duccId);
      if(!mMap.containsKey(duccId)) {
        MonitorInfo monitorInfo = new MonitorInfo();
        mMap.put(duccId, monitorInfo);
        duccLogger.info(location, duccId, "monitor start");
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

      iterator = duccWorkMap.getJobKeySet().iterator();
      while(iterator.hasNext()) {
        DuccId jobId = iterator.next();
        String fid = ""+jobId.getFriendly();
        if(jobNo.equals(fid)) {
          job = (DuccWorkJob) duccWorkMap.findDuccWork(jobId);
          break;
        }
      }
    }
    return job;
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

      iterator = duccWorkMap.getServiceKeySet().iterator();
      while(iterator.hasNext()) {
        DuccId jobId = iterator.next();
        String fid = ""+jobId.getFriendly();
        if(reservationNo.equals(fid)) {
          managedReservation = (DuccWorkJob) duccWorkMap.findDuccWork(jobId);
          break;
        }
      }
    }
    return managedReservation;
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

        }
        while(iterator.hasNext()) {
          DuccId serviceId = iterator.next();
          String fid = ""+serviceId.getFriendly();
          if(implementors.contains(fid)) {
            service = (DuccWorkJob) duccWorkMap.findDuccWork(serviceId);
            IDuccProcessMap map = service.getProcessMap();
            for(DuccId key : map.keySet()) {
              IDuccProcess process = map.get(key);
              buildServiceFilesListEntry(baseRequest,request,sb, service, process, type, ++counter);
            }
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

      iterator = duccWorkMap.getServiceKeySet().iterator();
      while(iterator.hasNext()) {
        DuccId jobId = iterator.next();
        String fid = ""+jobId.getFriendly();
        if(reservationNo.equals(fid)) {
          managedReservation = (DuccWorkJob) duccWorkMap.findDuccWork(jobId);
          break;
        }
      }
    }
    if(managedReservation != null) {
View Full Code Here

Examples of org.apache.uima.ducc.transport.event.common.DuccWorkMap.findDuccWork()

        }
        while(iterator.hasNext()) {
          DuccId serviceId = iterator.next();
          String fid = ""+serviceId.getFriendly();
          if(implementors.contains(fid)) {
            service = (DuccWorkJob) duccWorkMap.findDuccWork(serviceId);
            IDuccProcessMap map = service.getProcessMap();
            for(DuccId key : map.keySet()) {
              IDuccProcess process = map.get(key);
              buildServiceProcessListEntry(sb, service, process, DetailsType.Service, type, ++counter);
            }
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.