public class GatewayResource 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 |
|---|
GatewayResource() |
GatewayResource(String gatewayName) |
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)
type - resource type of the childrenpublic void remove(ResourceType type, Object name)
type - child resource typename - child resource namepublic Resource get(ResourceType type, Object name)
type - child resource typename - child resource namepublic List<Resource> get(ResourceType type)
Resourcetype - child resource typepublic void save()
public boolean isExists(ResourceType type, Object name)
isExists in interface ResourceisExists in class AbstractResourcetype - child resource typename - name of the child resourcepublic boolean isHostDescriptorExists(String descriptorName)
descriptorName - host descriptor namepublic HostDescriptorResource createHostDescriptorResource(String hostDescriptorName)
hostDescriptorName - host descriptor namepublic HostDescriptorResource getHostDescriptorResource(String hostDescriptorName)
hostDescriptorName - host descriptor namepublic void removeHostDescriptor(String descriptorName)
descriptorName - host descriptor namepublic List<HostDescriptorResource> getHostDescriptorResources()
public boolean isServiceDescriptorExists(String descriptorName)
descriptorName - service descriptor namepublic ServiceDescriptorResource createServiceDescriptorResource(String descriptorName)
descriptorName - service descriptor namepublic ServiceDescriptorResource getServiceDescriptorResource(String descriptorName)
descriptorName - service descriptor namepublic void removeServiceDescriptor(String descriptorName)
descriptorName - Service descriptor namepublic List<ServiceDescriptorResource> getServiceDescriptorResources()
public boolean isApplicationDescriptorExists(String descriptorName)
descriptorName - application descriptor namepublic ApplicationDescriptorResource createApplicationDescriptorResource(String descriptorName)
descriptorName - application descriptor namepublic ApplicationDescriptorResource getApplicationDescriptorResource(String descriptorName)
descriptorName - application descriptor namepublic void removeApplicationDescriptor(String descriptorName)
descriptorName - application descriptor namepublic List<ApplicationDescriptorResource> getApplicationDescriptorResources()
public List<ApplicationDescriptorResource> getApplicationDescriptorResources(String serviceName, String hostName)
serviceName - service descriptor namehostName - host descriptor namepublic boolean isPublishedWorkflowExists(String workflowTemplateName)
workflowTemplateName - published workflow template namepublic PublishWorkflowResource createPublishedWorkflow(String workflowTemplateName)
workflowTemplateName - published workflow template namepublic PublishWorkflowResource getPublishedWorkflow(String workflowTemplateName)
workflowTemplateName - published workflow template namepublic List<PublishWorkflowResource> getPublishedWorkflows()
public void removePublishedWorkflow(String workflowTemplateName)
workflowTemplateName - published workflow template nameCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.