public class ConfigurationResource 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 |
|---|
ConfigurationResource() |
ConfigurationResource(String configKey,
String configVal) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
create(ResourceType type)
Since Configuration does not depend on any other data structures at the
system, this method is not valid
|
List<Resource> |
get(ResourceType type)
Since Configuration does not depend on any other data structures at the
system, this method is not valid
|
Resource |
get(ResourceType type,
Object name)
Since Configuration does not depend on any other data structures at the
system, this method is not valid
|
String |
getCategoryID() |
String |
getConfigVal() |
boolean |
isExists(ResourceType type,
Object name)
Since Configuration does not depend on any other data structures at the
system, this method is not valid
|
List<Resource> |
populate(Object[] keys)
key should be the configuration name
|
void |
remove(ResourceType type,
Object name)
Since Configuration does not depend on any other data structures at the
system, this method is not valid
|
void |
save()
save configuration to database
|
void |
setCategoryID(String categoryID) |
void |
setConfigKey(String configKey) |
void |
setConfigVal(String configVal) |
void |
setExpireDate(Timestamp expireDate) |
getResourceListpublic Resource create(ResourceType type)
type - child resource typespublic void remove(ResourceType type, Object name)
type - child resource typesname - name of the child resource
throws UnsupportedOperationExceptionpublic Resource get(ResourceType type, Object name)
type - child resource typesname - name of the child resourcepublic List<Resource> populate(Object[] keys)
keys - namespublic List<Resource> get(ResourceType type)
type - child resource typespublic void setExpireDate(Timestamp expireDate)
expireDate - expire date of the configurationpublic void save()
public boolean isExists(ResourceType type, Object name)
isExists in interface ResourceisExists in class AbstractResourcetype - child resource typesname - of the child resourcepublic String getConfigVal()
public void setConfigKey(String configKey)
configKey - configuration keypublic void setConfigVal(String configVal)
configVal - configuration valuepublic String getCategoryID()
public void setCategoryID(String categoryID)
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.