public String getRunJSON(String runid) { ExecutionMonitorAPI monitor = config.getDomainExecutionMonitor(); RuntimePlan plan = monitor.getRunDetails(runid); if (plan.getPlan() != null) { for (ExecutionStep step : plan.getPlan().getAllExecutionSteps()) { for (ExecutionFile file : step.getInputFiles()) { file.loadMetadataFromLocation(); } for (ExecutionFile file : step.getOutputFiles()) { file.loadMetadataFromLocation(); } } } return json.toJson(plan); }
public RuntimeStep(ExecutionStep step) { super(step.getID()); this.step = step; this.runtimeInfo = new RuntimeInfo(); this.parents = new ArrayList<RuntimeStep>(); }