public class HostDescriptorResource 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 |
|---|
HostDescriptorResource() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
create(ResourceType type)
Host descriptor can create an application descriptor
|
List<Resource> |
get(ResourceType type)
Host descriptors can get a list of application descriptors
|
Resource |
get(ResourceType type,
Object name)
Host descriptor by alone cannot get any other resource types
|
String |
getContent() |
String |
getGatewayName() |
String |
getHostDescName() |
String |
getUserName() |
boolean |
isExists(ResourceType type,
Object name)
This method will check whether an entry from the given resource type and resource name
exists in the database
|
List<Resource> |
populate(Object[] keys)
key should be host_descriptor_name
|
void |
remove(ResourceType type,
Object name)
Host descriptor by alone cannot remove any other resource types
|
void |
save()
save host descriptor to the database
|
void |
setContent(String content) |
void |
setGatewayName(String gatewayName) |
void |
setHostDescName(String hostDescName) |
void |
setUserName(String userName) |
getResourceListpublic String getUserName()
public void setUserName(String userName)
userName - user namepublic String getHostDescName()
public String getGatewayName()
public String getContent()
public void setGatewayName(String gatewayName)
gatewayName - gateway namepublic void setContent(String content)
content - content of the host descriptorpublic Resource create(ResourceType type)
type - child resource typepublic 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> populate(Object[] keys)
keys - host descriptor namespublic List<Resource> get(ResourceType type)
type - child resource typepublic void save()
public boolean isExists(ResourceType type, Object name)
ResourceisExists in interface ResourceisExists in class AbstractResourcetype - child resource typename - child resource namepublic void setHostDescName(String hostDescName)
hostDescName - host descriptor nameCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.