public class ExperimentResource extends 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.WorkflowDataConstantsAPPLICATION_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 and Description |
|---|
ExperimentResource() |
| Modifier and Type | Method and Description |
|---|---|
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) |
getResourceList, isExistspublic String getExpID()
public Timestamp getSubmittedDate()
public void setSubmittedDate(Timestamp submittedDate)
submittedDate - submitted datepublic Resource create(ResourceType type)
type - child resource typespublic void remove(ResourceType type, Object name)
Resourcetype - child resource typesname - name of the child resourcepublic Resource get(ResourceType type, Object name)
Resourcetype - child resource typesname - name of the child resourcepublic List<Resource> populate(Object[] keys)
keys - experiment IDpublic List<Resource> get(ResourceType type)
Resourcetype - child resource typespublic 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()
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.