Package org.apache.oodt.pcs.health

Examples of org.apache.oodt.pcs.health.JobHealthStatus


        int numPipelines = this.wm.safeGetNumWorkflowInstancesByStatus(state);
        if (numPipelines == -1) {
          numPipelines = 0;
        }

        JobHealthStatus jobStatus = new JobHealthStatus();
        jobStatus.setStatus(state);
        jobStatus.setNumPipelines(numPipelines);
        statuses.add(jobStatus);
      }
    }

    return statuses;
View Full Code Here


  private void printJobStatusHealth(PCSHealthMonitorReport report) {
    if (report.getJobHealthStatus() != null
        && report.getJobHealthStatus().size() > 0) {
      for (Iterator i = report.getJobHealthStatus().iterator(); i.hasNext();) {
        JobHealthStatus status = (JobHealthStatus) i.next();
        System.out.println(status.getNumPipelines() + " pipelines "
            + status.getStatus());
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.oodt.pcs.health.JobHealthStatus

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.