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

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

public class NodeDataResource
extends AbstractResource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.airavata.persistance.registry.jpa.resources.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.WorkflowDataConstants
 
Field Summary
 
Fields inherited from class org.apache.airavata.persistance.registry.jpa.resources.AbstractResource
APPLICATION_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 Summary
NodeDataResource()
           
 
Method Summary
 Resource create(ResourceType type)
          This method will create associate resource objects for the given resource type.
 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
 int getExecutionIndex()
           
 List<Resource> getGFacJobs()
           
 String getInputs()
           
 Timestamp getLastUpdateTime()
           
 String getNodeID()
           
 String getNodeType()
           
 String getOutputs()
           
 Timestamp getStartTime()
           
 String getStatus()
           
 WorkflowDataResource getWorkflowDataResource()
           
 void remove(ResourceType type, Object name)
          This method will remove the given child resource from the database
 void save()
          This method will save the resource to the database.
 void setExecutionIndex(int executionIndex)
           
 void setInputs(String inputs)
           
 void setLastUpdateTime(Timestamp lastUpdateTime)
           
 void setNodeID(String nodeID)
           
 void setNodeType(String nodeType)
           
 void setOutputs(String outputs)
           
 void setStartTime(Timestamp startTime)
           
 void setStatus(String status)
           
 void setWorkflowDataResource(WorkflowDataResource workflowDataResource)
           
 
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
 

Constructor Detail

NodeDataResource

public NodeDataResource()
Method Detail

getWorkflowDataResource

public WorkflowDataResource getWorkflowDataResource()

getNodeID

public String getNodeID()

getNodeType

public String getNodeType()

getInputs

public String getInputs()

getOutputs

public String getOutputs()

getStatus

public String getStatus()

getStartTime

public Timestamp getStartTime()

getLastUpdateTime

public Timestamp getLastUpdateTime()

setWorkflowDataResource

public void setWorkflowDataResource(WorkflowDataResource workflowDataResource)

setNodeID

public void setNodeID(String nodeID)

setNodeType

public void setNodeType(String nodeType)

setInputs

public void setInputs(String inputs)

setOutputs

public void setOutputs(String outputs)

setStatus

public void setStatus(String status)

setStartTime

public void setStartTime(Timestamp startTime)

setLastUpdateTime

public void setLastUpdateTime(Timestamp lastUpdateTime)

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

getGFacJobs

public List<Resource> getGFacJobs()

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.


getExecutionIndex

public int getExecutionIndex()

setExecutionIndex

public void setExecutionIndex(int executionIndex)


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