public class WorkerResource extends AbstractResource
AbstractResource.AdvancedInputDataHandlingConstants, AbstractResource.AdvancedOutputDataHandlingConstants, AbstractResource.ApplicationDescriptorConstants, 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.HostDescriptorConstants, AbstractResource.JobDetailConstants, AbstractResource.NodeInputConstants, AbstractResource.NodeOutputConstants, AbstractResource.ProjectConstants, AbstractResource.ProjectUserConstants, AbstractResource.PublishedWorkflowConstants, AbstractResource.QosParamsConstants, AbstractResource.ServiceDescriptorConstants, AbstractResource.StatusConstants, AbstractResource.TaskDetailConstants, AbstractResource.UserConstants, AbstractResource.UserWorkflowConstants, AbstractResource.WorkflowNodeDetailsConstantsADVANCE_INPUT_DATA_HANDLING, ADVANCE_OUTPUT_DATA_HANDLING, APPLICATION_DESCRIPTOR, 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, HOST_DESCRIPTOR, JOB_DETAIL, NODE_INPUT, NODE_OUTPUT, PROJECT, PROJECT_USER, PUBLISHED_WORKFLOW, QOS_PARAMS, SERVICE_DESCRIPTOR, STATUS, TASK_DETAIL, USER_WORKFLOW, USERS, WORKFLOW_NODE_DETAIL| Constructor and Description |
|---|
WorkerResource() |
WorkerResource(String user,
GatewayResource gateway) |
getResourceList, isExistspublic WorkerResource()
public WorkerResource(String user, GatewayResource gateway)
user - usernamegateway - gatewayResourcepublic Resource create(ResourceType type) throws RegistryException
type - child resource typeRegistryExceptionpublic void remove(ResourceType type, Object name) throws RegistryException
Resourcetype - child resource typename - child resource nameRegistryExceptionpublic Resource get(ResourceType type, Object name) throws RegistryException
Resourcetype - child resource typename - child resource nameRegistryExceptionpublic List<Resource> get(ResourceType type) throws RegistryException
Resourcetype - child resource typeRegistryExceptionpublic void save()
throws RegistryException
RegistryExceptionpublic String getUser()
public void setUser(String user)
user - user namepublic GatewayResource getGateway()
public void setGateway(GatewayResource gateway)
gateway - gateway resourcepublic boolean isProjectExists(String id) throws RegistryException
id - project idRegistryExceptionpublic ProjectResource createProject(String projectId) throws RegistryException
projectId - project idRegistryExceptionpublic ProjectResource getProject(String id) throws RegistryException
id - project idRegistryExceptionpublic void removeProject(String id) throws RegistryException
id - project idRegistryExceptionpublic List<ProjectResource> getProjects() throws RegistryException
RegistryExceptionpublic boolean isWorkflowTemplateExists(String templateName) throws RegistryException
templateName - user workflow templateRegistryExceptionpublic UserWorkflowResource createWorkflowTemplate(String templateName) throws RegistryException
templateName - user workflow templateRegistryExceptionpublic UserWorkflowResource getWorkflowTemplate(String templateName) throws RegistryException
templateName - user workflow templateRegistryExceptionpublic void removeWorkflowTemplate(String templateName) throws RegistryException
templateName - user workflow templateRegistryExceptionpublic List<UserWorkflowResource> getWorkflowTemplates() throws RegistryException
RegistryExceptionpublic boolean isExperimentExists(String name) throws RegistryException
name - experiment nameRegistryExceptionpublic ExperimentResource getExperiment(String name) throws RegistryException
name - experiment nameRegistryExceptionpublic List<ExperimentResource> getExperiments() throws RegistryException
RegistryExceptionpublic void removeExperiment(String experimentId) throws RegistryException
experimentId - experiment nameRegistryExceptionpublic List<ProjectResource> searchProjects(Map<String,String> filters) throws RegistryException
RegistryExceptionpublic List<ExperimentResource> searchExperiments(Map<String,String> filters) throws RegistryException
RegistryExceptionpublic List<ExperimentResource> getExperimentsByCaching(String user) throws RegistryException
RegistryExceptionCopyright © 2011–2014 The Apache Software Foundation. All rights reserved.