org.apache.airavata.persistance.registry.jpa.resources
Class WorkflowDataResource

java.lang.Object
  extended by org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
      extended by org.apache.airavata.persistance.registry.jpa.resources.WorkflowDataResource
All Implemented Interfaces:
Resource

public class WorkflowDataResource
extends AbstractResource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
AbstractResource.ApplicationDescriptorConstants, AbstractResource.ConfigurationConstants, AbstractResource.ExperimentConstants, AbstractResource.ExperimentDataConstants, AbstractResource.GatewayConstants, AbstractResource.GatewayWorkerConstants, AbstractResource.GramDataConstants, AbstractResource.HostDescriptorConstants, AbstractResource.NodeDataConstants, AbstractResource.ProjectConstants, AbstractResource.PublishedWorkflowConstants, AbstractResource.ServiceDescriptorConstants, AbstractResource.UserConstants, AbstractResource.UserWorkflowConstants, AbstractResource.WorkflowDataConstants
 
Field Summary
static String GRAM_DATA
           
static String NODE_DATA
           
 
Fields inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
APPLICATION_DESCRIPTOR, CONFIGURATION, EXPERIMENT, EXPERIMENT_DATA, EXPERIMENT_METADATA, GATEWAY, GATEWAY_WORKER, HOST_DESCRIPTOR, PROJECT, PUBLISHED_WORKFLOW, SERVICE_DESCRIPTOR, USER_WORKFLOW, USERS, WORKFLOW_DATA
 
Constructor Summary
WorkflowDataResource()
           
 
Method Summary
 Resource create(ResourceType type)
          This method will create associate resource objects for the given resource type.
 GramDataResource createGramData(String nodeId)
           
 NodeDataResource createNodeData(String nodeId)
           
 List<Resource> get(ResourceType type)
          This method will list all the child resources for the given resource type
 Resource get(ResourceType type, Object name)
          This method will return the given child resource from the database
 String getExperimentID()
           
 List<GramDataResource> getGramData()
           
 GramDataResource getGramData(String nodeId)
           
 Timestamp getLastUpdatedTime()
           
 List<NodeDataResource> getNodeData()
           
 NodeDataResource getNodeData(String nodeId)
           
 Timestamp getStartTime()
           
 String getStatus()
           
 String getTemplateName()
           
 String getWorkflowInstanceID()
           
 boolean isGramDataExists(String nodeId)
           
 boolean isNodeExists(String nodeId)
           
 void remove(ResourceType type, Object name)
          This method will remove the given child resource from the database
 void removeGramData(String nodeId)
           
 void removeNodeData(String nodeId)
           
 void save()
          This method will save the resource to the database.
 void setExperimentID(String experimentID)
           
 void setLastUpdatedTime(Timestamp lastUpdatedTime)
           
 void setStartTime(Timestamp startTime)
           
 void setStatus(String status)
           
 void setTemplateName(String templateName)
           
 void setWorkflowInstanceID(String workflowInstanceID)
           
 
Methods inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
getResourceList, isExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_DATA

public static final String NODE_DATA
See Also:
Constant Field Values

GRAM_DATA

public static final String GRAM_DATA
See Also:
Constant Field Values
Constructor Detail

WorkflowDataResource

public WorkflowDataResource()
Method Detail

getExperimentID

public String getExperimentID()

getWorkflowInstanceID

public String getWorkflowInstanceID()

getTemplateName

public String getTemplateName()

getStatus

public String getStatus()

setExperimentID

public void setExperimentID(String experimentID)

setWorkflowInstanceID

public void setWorkflowInstanceID(String workflowInstanceID)

setTemplateName

public void setTemplateName(String templateName)

setStatus

public void setStatus(String status)

getStartTime

public Timestamp getStartTime()

getLastUpdatedTime

public Timestamp getLastUpdatedTime()

setStartTime

public void setStartTime(Timestamp startTime)

setLastUpdatedTime

public void setLastUpdatedTime(Timestamp lastUpdatedTime)

create

public Resource create(ResourceType type)
Description copied from interface: Resource
This method will create associate resource objects for the given resource type.

Parameters:
type - child resource type
Returns:
associate child resource

remove

public void remove(ResourceType type,
                   Object name)
Description copied from interface: Resource
This method will remove the given child resource from the database

Parameters:
type - child resource type
name - child resource name

get

public Resource get(ResourceType type,
                    Object name)
Description copied from interface: Resource
This method will return the given child resource from the database

Parameters:
type - child resource type
name - child resource name
Returns:
associate child resource

get

public List<Resource> get(ResourceType type)
Description copied from interface: Resource
This method will list all the child resources for the given resource type

Parameters:
type - child resource type
Returns:
list of child resources of the given child resource type

save

public void save()
Description copied from interface: Resource
This method will save the resource to the database.


isNodeExists

public boolean isNodeExists(String nodeId)

isGramDataExists

public boolean isGramDataExists(String nodeId)

getNodeData

public NodeDataResource getNodeData(String nodeId)

getGramData

public GramDataResource getGramData(String nodeId)

getNodeData

public List<NodeDataResource> getNodeData()

getGramData

public List<GramDataResource> getGramData()

createNodeData

public NodeDataResource createNodeData(String nodeId)

createGramData

public GramDataResource createGramData(String nodeId)

removeNodeData

public void removeNodeData(String nodeId)

removeGramData

public void removeGramData(String nodeId)


Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.