Coverage Report - org.galagosearch.tupleflow.execution.ErrorExecutionStatus
 
Classes in this File Line Coverage Branch Coverage Complexity
ErrorExecutionStatus
0%
0/11
N/A
0
 
 1  
 // BSD License (http://www.galagosearch.org/license)
 2  
 
 3  
 package org.galagosearch.tupleflow.execution;
 4  
 
 5  
 import java.util.Collections;
 6  
 import java.util.List;
 7  
 
 8  
 /**
 9  
  * A dummy execution status object that wraps an error.
 10  
  * 
 11  
  * @author trevor
 12  
  */
 13  
 public class ErrorExecutionStatus implements StageExecutionStatus {
 14  
     List<Exception> exceptions;
 15  
     String name;
 16  
 
 17  0
     public ErrorExecutionStatus(String name, Exception e) {
 18  0
         this.name = name;
 19  0
         this.exceptions = Collections.singletonList(e);
 20  0
     }
 21  
 
 22  0
     public String getName() { return name; }
 23  0
     public int getBlockedInstances() { return 0; }
 24  0
     public int getQueuedInstances() { return 0; }
 25  0
     public int getRunningInstances() { return 0; }
 26  0
     public int getCompletedInstances() { return 0; }
 27  0
     public boolean isDone() { return true; }
 28  0
     public List<Exception> getExceptions() { return exceptions; }
 29  
 }