|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.airavata.persistance.registry.jpa.resources.AbstractResource
org.apache.airavata.persistance.registry.jpa.resources.ExperimentResource
public class ExperimentResource
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource |
|---|
APPLICATION_DESCRIPTOR, CONFIGURATION, EXPERIMENT, EXPERIMENT_DATA, EXPERIMENT_METADATA, GATEWAY, GATEWAY_WORKER, 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 |
|---|
public ExperimentResource()
| Method Detail |
|---|
public String getExpID()
public Timestamp getSubmittedDate()
public void setSubmittedDate(Timestamp submittedDate)
submittedDate - submitted datepublic Resource create(ResourceType type)
type - child resource types
public void remove(ResourceType type,
Object name)
Resource
type - child resource typesname - name of the child resource
public Resource get(ResourceType type,
Object name)
Resource
type - child resource typesname - name of the child resource
public List<Resource> populate(Object[] keys)
keys - experiment ID
public List<Resource> get(ResourceType type)
Resource
type - child resource types
public void save()
public void setExpID(String expID)
expID - experiment IDpublic GatewayResource getGateway()
public void setGateway(GatewayResource gateway)
gateway - gatewaypublic WorkerResource getWorker()
public void setWorker(WorkerResource worker)
worker - gateway workerpublic ProjectResource getProject()
public void setProject(ProjectResource project)
project - projectpublic ExperimentDataResource getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||