Package org.apache.airavata.persistance.registry.jpa.resources

Examples of org.apache.airavata.persistance.registry.jpa.resources.ExecutionErrorResource.save()


      throws RegistryException {
    if (provenanceRegistry != null){
            return provenanceRegistry.addExperimentError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.EXPERIMENT);
    executionError.save();
    return executionError.getErrorID();
  }

  private ExecutionErrorResource createNewExecutionErrorResource(
      String experimentId, ExecutionError errorSource, ExecutionErrors.Source type) throws RegistryException {
View Full Code Here


    if (provenanceRegistry != null){
            return provenanceRegistry.addWorkflowExecutionError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.WORKFLOW);
    executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
    executionError.save();
    return executionError.getErrorID();
  }

  @Override
  public int addNodeExecutionError(NodeExecutionError error)
View Full Code Here

            return provenanceRegistry.addNodeExecutionError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error, Source.NODE);
    executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
    executionError.setNodeID(error.getNodeId());
    executionError.save();
    return executionError.getErrorID();
  }

  @Override
  public int addApplicationJobExecutionError(ApplicationJobExecutionError error)
View Full Code Here

        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error, Source.APPLICATION);
    executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
    executionError.setNodeID(error.getNodeId());
    executionError.setGfacJobID(error.getJobId());
    executionError.save();
    return executionError.getErrorID();
  }

  @Override
  public void addApplicationJob(ApplicationJob job) throws RegistryException {
View Full Code Here

      throws RegistryException {
    if (provenanceRegistry != null){
            return provenanceRegistry.addExperimentError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.EXPERIMENT);
    executionError.save();
    return executionError.getErrorID();
  }

  private ExecutionErrorResource createNewExecutionErrorResource(
      String experimentId, ExecutionError errorSource, ExecutionErrors.Source type) throws RegistryException {
View Full Code Here

    if (provenanceRegistry != null){
            return provenanceRegistry.addWorkflowExecutionError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.WORKFLOW);
    executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
    executionError.save();
    return executionError.getErrorID();
  }

  @Override
  public int addNodeExecutionError(NodeExecutionError error)
View Full Code Here

            return provenanceRegistry.addNodeExecutionError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error, Source.NODE);
    executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
    executionError.setNodeID(error.getNodeId());
    executionError.save();
    return executionError.getErrorID();
  }

  @Override
  public int addApplicationJobExecutionError(ApplicationJobExecutionError error)
View Full Code Here

        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error, Source.APPLICATION);
    executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
    executionError.setNodeID(error.getNodeId());
    executionError.setGfacJobID(error.getJobId());
    executionError.save();
    return executionError.getErrorID();
  }

  @Override
  public void addApplicationJob(ApplicationJob job) throws RegistryException {
View Full Code Here

      throws RegistryException {
    if (provenanceRegistry != null){
            return provenanceRegistry.addExperimentError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.EXPERIMENT);
    executionError.save();
    return executionError.getErrorID();
  }

  private ExecutionErrorResource createNewExecutionErrorResource(
      String experimentId, ExecutionError errorSource, ExecutionErrors.Source type) throws RegistryException {
View Full Code Here

    if (provenanceRegistry != null){
            return provenanceRegistry.addWorkflowExecutionError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.WORKFLOW);
    executionError.setWorkflowDataResource(jpa.getWorker().getExperiment(error.getExperimentId()).getData().getWorkflowInstance(error.getWorkflowInstanceId()));
    executionError.save();
    return executionError.getErrorID();
  }

  @Override
  public int addNodeExecutionError(NodeExecutionError error)
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.