public class ApplicationDescriptorResource 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 |
|---|
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
|
List<Resource> |
populate(Object[] keys)
keys should contain gateway_name, application_descriptor_ID, host_descriptor_ID, service_descriptor_ID
|
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)
type - child resource typespublic void remove(ResourceType type, Object name)
type - child resource typesname - name of the resourcepublic Resource get(ResourceType type, Object name)
type - child resource typesname - name of the resourcepublic List<Resource> populate(Object[] keys)
keys - namespublic List<Resource> get(ResourceType type)
type - child resource typespublic void save()
public boolean isExists(ResourceType type, Object name)
isExists in interface ResourceisExists in class AbstractResourcetype - child resource typesname - name of the resourcepublic void setName(String name)
name - application descriptor nameCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.