1 /** 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 package org.apache.oodt.pcs.health; 19 20 //OODT imports 21 import org.apache.oodt.cas.workflow.structs.WorkflowInstance; //for javadoc 22 import org.apache.oodt.cas.workflow.structs.WorkflowStatus; //for javadoc 23 24 /** 25 * 26 * A container representing Job health status in the PCS 27 * 28 * @author mattmann 29 * @version $Revision$ 30 */ 31 public class JobHealthStatus { 32 33 private String status; 34 35 private int numPipelines; 36 37 public JobHealthStatus() { 38 39 } 40 41 /** 42 * Constructs a JobHealthStatus with the given parameters. 43 * 44 * @param status 45 * The Job status, one of {@link WorkflowStatus#STARTED}, or any of 46 * the other WorkflowStatus keys. 47 * 48 * @param numPipelines 49 * The number of {@link WorkflowInstance}s with the given 50 * {@link WorkflowStatus}. 51 */ 52 public JobHealthStatus(String status, int numPipelines) { 53 this.status = status; 54 this.numPipelines = numPipelines; 55 } 56 57 /** 58 * @return the numPipelines 59 */ 60 public int getNumPipelines() { 61 return numPipelines; 62 } 63 64 /** 65 * @param numPipelines 66 * the numPipelines to set 67 */ 68 public void setNumPipelines(int numPipelines) { 69 this.numPipelines = numPipelines; 70 } 71 72 /** 73 * @return the status 74 */ 75 public String getStatus() { 76 return status; 77 } 78 79 /** 80 * @param status 81 * the status to set 82 */ 83 public void setStatus(String status) { 84 this.status = status; 85 } 86 87 }