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

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

public class ExperimentResource
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
ExperimentResource()
           
 
Method Summary
 Resource create(ResourceType type)
          Since experiments are at the leaf level, this method is not valid for an experiment
 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
 ExperimentDataResource getData()
           
 String getExpID()
           
 GatewayResource getGateway()
           
 ProjectResource getProject()
           
 Timestamp getSubmittedDate()
           
 WorkerResource getWorker()
           
 List<Resource> populate(Object[] keys)
          key should be the experiment ID
 void remove(ResourceType type, Object name)
          This method will remove the given child resource from the database
 void save()
          save experiment
 void setExpID(String expID)
           
 void setGateway(GatewayResource gateway)
           
 void setProject(ProjectResource project)
           
 void setSubmittedDate(Timestamp submittedDate)
           
 void setWorker(WorkerResource worker)
           
 
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

ExperimentResource

public ExperimentResource()
Method Detail

getExpID

public String getExpID()
Returns:
experiment ID

getSubmittedDate

public Timestamp getSubmittedDate()
Returns:
submitted date

setSubmittedDate

public void setSubmittedDate(Timestamp submittedDate)
Parameters:
submittedDate - submitted date

create

public Resource create(ResourceType type)
Since experiments are at the leaf level, this method is not valid for an experiment

Parameters:
type - child resource types
Returns:
UnsupportedOperationException

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 types
name - name of the child resource

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 types
name - name of the child resource
Returns:
UnsupportedOperationException

populate

public List<Resource> populate(Object[] keys)
key should be the experiment ID

Parameters:
keys - experiment ID
Returns:
ExperimentResource

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 types
Returns:
UnsupportedOperationException

save

public void save()
save experiment


setExpID

public void setExpID(String expID)
Parameters:
expID - experiment ID

getGateway

public GatewayResource getGateway()
Returns:
gatewayResource

setGateway

public void setGateway(GatewayResource gateway)
Parameters:
gateway - gateway

getWorker

public WorkerResource getWorker()
Returns:
worker for the gateway

setWorker

public void setWorker(WorkerResource worker)
Parameters:
worker - gateway worker

getProject

public ProjectResource getProject()
Returns:
project

setProject

public void setProject(ProjectResource project)
Parameters:
project - project

getData

public ExperimentDataResource getData()


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