public class GatewayResource extends AbstractResource
AbstractResource.AdvancedInputDataHandlingConstants, AbstractResource.AdvancedOutputDataHandlingConstants, AbstractResource.ApplicationInputConstants, AbstractResource.ApplicationOutputConstants, AbstractResource.ComputationalResourceSchedulingConstants, AbstractResource.ConfigurationConstants, AbstractResource.DataTransferDetailConstants, AbstractResource.ErrorDetailConstants, AbstractResource.ExperimentConfigurationDataConstants, AbstractResource.ExperimentConstants, AbstractResource.ExperimentInputConstants, AbstractResource.ExperimentOutputConstants, AbstractResource.GatewayConstants, AbstractResource.GatewayWorkerConstants, AbstractResource.JobDetailConstants, AbstractResource.NodeInputConstants, AbstractResource.NodeOutputConstants, AbstractResource.ProjectConstants, AbstractResource.ProjectUserConstants, AbstractResource.PublishedWorkflowConstants, AbstractResource.QosParamsConstants, AbstractResource.StatusConstants, AbstractResource.TaskDetailConstants, AbstractResource.UserConstants, AbstractResource.UserWorkflowConstants, AbstractResource.WorkflowNodeDetailsConstantsADVANCE_INPUT_DATA_HANDLING, ADVANCE_OUTPUT_DATA_HANDLING, APPLICATION_INPUT, APPLICATION_OUTPUT, COMPUTATIONAL_RESOURCE_SCHEDULING, CONFIG_DATA, CONFIGURATION, DATA_TRANSFER_DETAIL, ERROR_DETAIL, EXPERIMENT, EXPERIMENT_CONFIG_DATA, EXPERIMENT_INPUT, EXPERIMENT_OUTPUT, GATEWAY, GATEWAY_WORKER, JOB_DETAIL, NODE_INPUT, NODE_OUTPUT, PROJECT, PROJECT_USER, PUBLISHED_WORKFLOW, QOS_PARAMS, STATUS, TASK_DETAIL, USER_WORKFLOW, USERS, WORKFLOW_NODE_DETAIL| Constructor and Description |
|---|
GatewayResource() |
GatewayResource(String gatewayName) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
create(ResourceType type)
Gateway is at the root level.
|
ExperimentResource |
createExperiment(String experimentID) |
PublishWorkflowResource |
createPublishedWorkflow(String workflowTemplateName) |
List<Resource> |
get(ResourceType type)
This method will list all the child resources for the given resource type
|
Resource |
get(ResourceType type,
Object name)
Gateway can get information of his children
|
ExperimentResource |
getExperiment(String expId) |
List<ExperimentResource> |
getExperiments() |
String |
getGatewayName() |
String |
getOwner() |
PublishWorkflowResource |
getPublishedWorkflow(String workflowTemplateName) |
List<PublishWorkflowResource> |
getPublishedWorkflows() |
boolean |
isExists(ResourceType type,
Object name)
check whether child resource already exist in the database
|
boolean |
isPublishedWorkflowExists(String workflowTemplateName) |
void |
remove(ResourceType type,
Object name)
Child resources can be removed from a gateway
|
void |
removePublishedWorkflow(String workflowTemplateName) |
void |
save()
save the gateway to the database
|
void |
setGatewayName(String gatewayName) |
void |
setOwner(String owner) |
getResourceListpublic GatewayResource(String gatewayName)
gatewayName - gateway namepublic GatewayResource()
public String getGatewayName()
public void setGatewayName(String gatewayName)
gatewayName - public String getOwner()
public void setOwner(String owner)
owner - owner of the gatewaypublic Resource create(ResourceType type) throws RegistryException
type - resource type of the childrenRegistryExceptionpublic void remove(ResourceType type, Object name) throws RegistryException
type - child resource typename - child resource nameRegistryExceptionpublic Resource get(ResourceType type, Object name) throws RegistryException
type - child resource typename - child resource nameRegistryExceptionpublic List<Resource> get(ResourceType type) throws RegistryException
Resourcetype - child resource typeRegistryExceptionpublic void save()
throws RegistryException
RegistryExceptionpublic boolean isExists(ResourceType type, Object name) throws RegistryException
isExists in interface ResourceisExists in class AbstractResourcetype - child resource typename - name of the child resourceRegistryExceptionpublic boolean isPublishedWorkflowExists(String workflowTemplateName) throws RegistryException
workflowTemplateName - published workflow template nameRegistryExceptionpublic PublishWorkflowResource createPublishedWorkflow(String workflowTemplateName) throws RegistryException
workflowTemplateName - published workflow template nameRegistryExceptionpublic PublishWorkflowResource getPublishedWorkflow(String workflowTemplateName) throws RegistryException
workflowTemplateName - published workflow template nameRegistryExceptionpublic List<PublishWorkflowResource> getPublishedWorkflows() throws RegistryException
RegistryExceptionpublic void removePublishedWorkflow(String workflowTemplateName) throws RegistryException
workflowTemplateName - published workflow template nameRegistryExceptionpublic ExperimentResource createExperiment(String experimentID) throws RegistryException
RegistryExceptionpublic ExperimentResource getExperiment(String expId) throws RegistryException
RegistryExceptionpublic List<ExperimentResource> getExperiments() throws RegistryException
RegistryExceptionCopyright © 2011–2014 The Apache Software Foundation. All rights reserved.