Examples of save()


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

            ApplicationDescriptorResource applicationDescriptorResource = gateway.createApplicationDescriptorResource(applicationName);
            applicationDescriptorResource.setUpdatedUser(workerResource.getUser());
            applicationDescriptorResource.setServiceDescName(serviceName);
            applicationDescriptorResource.setHostDescName(hostName);
            applicationDescriptorResource.setContent(descriptor.toXML());
            applicationDescriptorResource.save();
        }
    }

    public void udpateApplicationDescriptor(ServiceDescription serviceDescription,
                                            HostDescription hostDescriptor,
View Full Code Here

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

            }else{
                config = ResourceUtils.createConfiguration(key);
            }
            config.setConfigVal(value);
            config.setExpireDate(new Timestamp(expire.getTime()));
            config.save();
        }
    }

    public void addConfiguration(String key, String value, Date expire) {
        if (configurationRegistry != null){
View Full Code Here

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

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

                throw new ExperimentDoesNotExistsException(experimentId);
            }
            ExperimentResource experiment = jpa.getWorker().getExperiment(experimentId);
            ExperimentDataResource data = experiment.getData();
            data.setUserName(user);
            data.save();
        }
  }


  @Override
View Full Code Here

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

                experimentMetadata.setMetadata(metadata);
            }else{
                experimentMetadata = data.createExperimentMetadata();
                experimentMetadata.setMetadata(metadata);
            }
            experimentMetadata.save();
        }
  }


  @Override
View Full Code Here

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

            }
            ExperimentResource experimentResource = project.createExperiment(experimentId);
            if (experiment.getSubmittedDate()!=null) {
                experimentResource.setSubmittedDate(new Timestamp(experiment.getSubmittedDate().getTime()));
            }
            experimentResource.save();
        }
    }

    public void removeExperiment(String experimentId) throws ExperimentDoesNotExistsException {
        if (projectsRegistry != null){
View Full Code Here

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

    GFacJobDataResource gfacJob = expData.createGFacJob(job.getJobId());
    gfacJob.setExperimentDataResource(expData);
    gfacJob.setWorkflowDataResource(expData.getWorkflowInstance(job.getWorkflowExecutionId()));
    gfacJob.setNodeID(job.getNodeId());
    setupValues(job, gfacJob);
    gfacJob.save();
    addApplicationJobStatusData(job.getJobId(), job.getStatus(), job.getStatusUpdateTime(),gfacJob);
  }

  private void setupValues(ApplicationJob job, GFacJobDataResource gfacJob) {
    gfacJob.setApplicationDescID(job.getApplicationDescriptionId());
View Full Code Here

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

        dataResource = jpa.getWorker().getGFacJob(jobId);
      }
      GFacJobStatusResource s = (GFacJobStatusResource)dataResource.create(ResourceType.GFAC_JOB_STATUS);
      s.setStatus(status.toString());
      s.setStatusUpdateTime(new Timestamp(updatedTime.getTime()));
      s.save();
    }
  }

}
View Full Code Here

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

        try{
            GatewayResource gatewayResource = new GatewayResource();
            gatewayResource.setGatewayName(RegistrySettings.getSetting("default.registry.gateway"));
            gatewayResource.setOwner(RegistrySettings.getSetting("default.registry.gateway"));
            gatewayResource.save();

            UserResource userResource = (UserResource) gatewayResource.create(ResourceType.USER);
            userResource.setUserName(RegistrySettings.getSetting("default.registry.user"));
            userResource.setPassword(RegistrySettings.getSetting("default.registry.password"));
            userResource.save();
View Full Code Here

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

                gramData = workflowInstance.createGramData(workflowNodeGramData.getNodeID());
            }
            gramData.setInvokedHost(workflowNodeGramData.getInvokedHost());
            gramData.setLocalJobID(workflowNodeGramData.getGramJobID());
            gramData.setRsl(workflowNodeGramData.getRsl());
            gramData.save();
        }
  }


  @Override
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.