org.apache.airavata.persistance.registry.jpa.resources
Class ExperimentDataResource

java.lang.Object
  extended by org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
      extended by org.apache.airavata.persistance.registry.jpa.resources.ExperimentDataResource
All Implemented Interfaces:
Resource

public class ExperimentDataResource
extends AbstractResource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
AbstractResource.ApplicationDescriptorConstants, AbstractResource.ConfigurationConstants, AbstractResource.ExecutionErrorConstants, AbstractResource.ExperimentConstants, AbstractResource.ExperimentDataConstants, AbstractResource.GatewayConstants, AbstractResource.GatewayWorkerConstants, AbstractResource.GFacJobDataConstants, AbstractResource.GFacJobStatusConstants, AbstractResource.GramDataConstants, AbstractResource.HostDescriptorConstants, AbstractResource.NodeDataConstants, AbstractResource.ProjectConstants, AbstractResource.PublishedWorkflowConstants, AbstractResource.ServiceDescriptorConstants, AbstractResource.UserConstants, AbstractResource.UserWorkflowConstants, AbstractResource.WorkflowDataConstants
 
Field Summary
 
Fields inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
APPLICATION_DESCRIPTOR, CONFIGURATION, EXECUTION_ERROR, EXPERIMENT, EXPERIMENT_DATA, EXPERIMENT_METADATA, GATEWAY, GATEWAY_WORKER, GFAC_JOB_DATA, GFAC_JOB_STATUS, HOST_DESCRIPTOR, PROJECT, PUBLISHED_WORKFLOW, SERVICE_DESCRIPTOR, USER_WORKFLOW, USERS, WORKFLOW_DATA
 
Constructor Summary
ExperimentDataResource()
           
 
Method Summary
 Resource create(ResourceType type)
          This method will create associate resource objects for the given resource type.
 ExecutionErrorResource createExecutionError()
           
 ExperimentMetadataResource createExperimentMetadata()
           
 GFacJobDataResource createGFacJob(String jobID)
           
 WorkflowDataResource createWorkflowInstanceResource(String workflowInstanceID)
           
 List<Resource> get(ResourceType type)
          This method will list all the child resources for the given resource type
 Resource get(ResourceType type, Object name)
          This method will return the given child resource from the database
 List<ExecutionErrorResource> getExecutionErrors(String type, String experimentId, String workflowInstanceId, String nodeId, String gfacJobId)
           
 String getExperimentID()
           
 ExperimentMetadataResource getExperimentMetadata()
           
 String getExpName()
           
 List<Resource> getGFacJobs()
           
 String getUserName()
           
 WorkflowDataResource getWorkflowInstance(String workflowInstanceId)
           
 List<WorkflowDataResource> getWorkflowInstances()
           
 boolean isExperimentMetadataPresent()
           
 boolean isGFacJobPresent(String jobId)
           
 boolean isWorkflowInstancePresent(String workflowInstanceId)
           
 void remove(ResourceType type, Object name)
          This method will remove the given child resource from the database
 void removeExperimentMetadata()
           
 void removeWorkflowInstance(String workflowInstanceId)
           
 void save()
          This method will save the resource to the database.
 void setExperimentID(String experimentID)
           
 void setExpName(String expName)
           
 void setUserName(String userName)
           
 
Methods inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
getResourceList, isExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExperimentDataResource

public ExperimentDataResource()
Method Detail

getExperimentID

public String getExperimentID()

getExpName

public String getExpName()

getUserName

public String getUserName()

setExperimentID

public void setExperimentID(String experimentID)

setExpName

public void setExpName(String expName)

setUserName

public void setUserName(String userName)

create

public Resource create(ResourceType type)
Description copied from interface: Resource
This method will create associate resource objects for the given resource type.

Parameters:
type - child resource type
Returns:
associate child resource

remove

public void remove(ResourceType type,
                   Object name)
Description copied from interface: Resource
This method will remove the given child resource from the database

Parameters:
type - child resource type
name - child resource name

get

public Resource get(ResourceType type,
                    Object name)
Description copied from interface: Resource
This method will return the given child resource from the database

Parameters:
type - child resource type
name - child resource name
Returns:
associate child resource

get

public List<Resource> get(ResourceType type)
Description copied from interface: Resource
This method will list all the child resources for the given resource type

Parameters:
type - child resource type
Returns:
list of child resources of the given child resource type

save

public void save()
Description copied from interface: Resource
This method will save the resource to the database.


isWorkflowInstancePresent

public boolean isWorkflowInstancePresent(String workflowInstanceId)

isGFacJobPresent

public boolean isGFacJobPresent(String jobId)

isExperimentMetadataPresent

public boolean isExperimentMetadataPresent()

getWorkflowInstance

public WorkflowDataResource getWorkflowInstance(String workflowInstanceId)

getGFacJobs

public List<Resource> getGFacJobs()

getExperimentMetadata

public ExperimentMetadataResource getExperimentMetadata()

getWorkflowInstances

public List<WorkflowDataResource> getWorkflowInstances()

createWorkflowInstanceResource

public WorkflowDataResource createWorkflowInstanceResource(String workflowInstanceID)

createGFacJob

public GFacJobDataResource createGFacJob(String jobID)

createExperimentMetadata

public ExperimentMetadataResource createExperimentMetadata()

createExecutionError

public ExecutionErrorResource createExecutionError()

removeWorkflowInstance

public void removeWorkflowInstance(String workflowInstanceId)

removeExperimentMetadata

public void removeExperimentMetadata()

getExecutionErrors

public List<ExecutionErrorResource> getExecutionErrors(String type,
                                                       String experimentId,
                                                       String workflowInstanceId,
                                                       String nodeId,
                                                       String gfacJobId)


Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.