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

Examples of org.apache.airavata.persistance.registry.jpa.resources.ExecutionErrorResource


  public int addExperimentError(ExperimentExecutionError error)
      throws RegistryException {
    if (provenanceRegistry != null){
            return provenanceRegistry.addExperimentError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.EXPERIMENT);
    executionError.save();
    return executionError.getErrorID();
  }
View Full Code Here


  private ExecutionErrorResource createNewExecutionErrorResource(
      String experimentId, ExecutionError errorSource, ExecutionErrors.Source type) throws RegistryException {
    if (!isExperimentExists(experimentId)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
    ExecutionErrorResource executionError = jpa.getWorker().getExperiment(experimentId).getData().createExecutionError();
    setupValues(errorSource, executionError);
    executionError.setSourceType(type.toString());
    return executionError;
  }
View Full Code Here

  public int addWorkflowExecutionError(WorkflowExecutionError error)
      throws RegistryException {
    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();
  }
View Full Code Here

  public int addNodeExecutionError(NodeExecutionError error)
      throws RegistryException {
    if (provenanceRegistry != null){
            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();
  }
View Full Code Here

  public int addApplicationJobExecutionError(ApplicationJobExecutionError error)
      throws RegistryException {
    if (provenanceRegistry != null){
            return provenanceRegistry.addApplicationJobExecutionError(error);
        }
    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();
  }
View Full Code Here

  public int addExperimentError(ExperimentExecutionError error)
      throws RegistryException {
    if (provenanceRegistry != null){
            return provenanceRegistry.addExperimentError(error);
        }
    ExecutionErrorResource executionError = createNewExecutionErrorResource(error.getExperimentId(),error,ExecutionErrors.Source.EXPERIMENT);
    executionError.save();
    return executionError.getErrorID();
  }
View Full Code Here

  private ExecutionErrorResource createNewExecutionErrorResource(
      String experimentId, ExecutionError errorSource, ExecutionErrors.Source type) throws RegistryException {
    if (!isExperimentExists(experimentId)){
      throw new ExperimentDoesNotExistsException(experimentId);
    }
    ExecutionErrorResource executionError = jpa.getWorker().getExperiment(experimentId).getData().createExecutionError();
    setupValues(errorSource, executionError);
    executionError.setSourceType(type.toString());
    return executionError;
  }
View Full Code Here

  public int addWorkflowExecutionError(WorkflowExecutionError error)
      throws RegistryException {
    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();
  }
View Full Code Here

  public int addNodeExecutionError(NodeExecutionError error)
      throws RegistryException {
    if (provenanceRegistry != null){
            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();
  }
View Full Code Here

  public int addApplicationJobExecutionError(ApplicationJobExecutionError error)
      throws RegistryException {
    if (provenanceRegistry != null){
            return provenanceRegistry.addApplicationJobExecutionError(error);
        }
    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();
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.persistance.registry.jpa.resources.ExecutionErrorResource

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.