public class ApplicationDescriptorResource 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 |
|---|
ApplicationDescriptorResource() |
ApplicationDescriptorResource(String name,
String gatewayName) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
create(ResourceType type)
Since application descriptors are at the leaf level, this method is not
valid for application descriptors
|
List<Resource> |
get(ResourceType type)
Since application descriptors are at the leaf level, this method is not
valid for application descriptors
|
Resource |
get(ResourceType type,
Object name)
Since application descriptors are at the leaf level, this method is not
valid for application descriptors
|
String |
getContent() |
String |
getGatewayName() |
String |
getHostDescName() |
String |
getName() |
String |
getServiceDescName() |
boolean |
isExists(ResourceType type,
Object name)
Since application descriptors are at the leaf level, this method is not
valid for application descriptors
|
void |
remove(ResourceType type,
Object name)
Since application descriptors are at the leaf level, this method is not
valid for application descriptors
|
void |
save()
save application descriptor to database
|
void |
setContent(String content) |
void |
setGatewayName(String gatewayName) |
void |
setHostDescName(String hostDescName) |
void |
setName(String name) |
void |
setServiceDescName(String serviceDescName) |
void |
setUpdatedUser(String updatedUser) |
getResourceListpublic ApplicationDescriptorResource(String name, String gatewayName)
name - application descriptor namegatewayName - gateway name
returns ApplicationDescriptorResourcepublic ApplicationDescriptorResource()
public String getGatewayName()
public void setGatewayName(String gatewayName)
gatewayName - gateway namepublic void setUpdatedUser(String updatedUser)
updatedUser - updated userpublic String getName()
public String getContent()
public String getHostDescName()
public String getServiceDescName()
public void setContent(String content)
content - content of the application descriptorpublic void setHostDescName(String hostDescName)
hostDescName - host descriptor namepublic void setServiceDescName(String serviceDescName)
serviceDescName - service descriptor namepublic Resource create(ResourceType type) throws RegistryException
type - child resource typesRegistryExceptionpublic void remove(ResourceType type, Object name) throws RegistryException
type - child resource typesname - name of the resourceRegistryExceptionpublic Resource get(ResourceType type, Object name) throws RegistryException
type - child resource typesname - name of the resourceRegistryExceptionpublic List<Resource> get(ResourceType type) throws RegistryException
type - child resource typesRegistryExceptionpublic void save()
throws RegistryException
RegistryExceptionpublic boolean isExists(ResourceType type, Object name) throws RegistryException
isExists in interface ResourceisExists in class AbstractResourcetype - child resource typesname - name of the resourceRegistryExceptionpublic void setName(String name)
name - application descriptor nameCopyright © 2011–2014 The Apache Software Foundation. All rights reserved.