Class ExecutionNode

java.lang.Object
org.ivoa.dm.execution.ExecutionNode
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execution:ExecutionNode", role=objectType) public class ExecutionNode extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
A Node where tool execution can take place. objectType: ExecutionNode
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • resourcesServiceUrl

      @VoDml(id="execution:ExecutionNode.resourcesServiceUrl", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String resourcesServiceUrl
      the . : Attribute resourcesServiceUrl type ivoa:anyURI : multiplicity 1
    • executionServiceUrl

      @VoDml(id="execution:ExecutionNode.executionServiceUrl", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String executionServiceUrl
      . : Attribute executionServiceUrl type ivoa:anyURI : multiplicity 1
    • location

      @VoDml(id="execution:ExecutionNode.location", role=reference, type="execution:PhysicalLocation", typeRole=objectType) protected PhysicalLocation location
      ReferenceObject location : the location of the node. ( Multiplicity : 1 )
    • dataTransferPerformance

      @VoDml(id="execution:ExecutionNode.dataTransferPerformance", role=composition, type="execution:TransferPerformance", typeRole=objectType) protected TransferPerformance dataTransferPerformance
      the performance of data transfer to/from the node. composition dataTransferPerformance : ( Multiplicity : 0..1 )
    • computeResources

      @VoDml(id="execution:ExecutionNode.computeResources", role=composition, type="execution:ComputeResource", typeRole=objectType) protected List<ComputeResource> computeResources
      the compute resources available at the node. composition computeResources : ( Multiplicity : 1..* )
  • Constructor Details

    • ExecutionNode

      public ExecutionNode()
      Creates a new ExecutionNode
    • ExecutionNode

      public ExecutionNode(String resourcesServiceUrl, String executionServiceUrl, PhysicalLocation location, TransferPerformance dataTransferPerformance, List<ComputeResource> computeResources)
      full parameter constructor.
      Parameters:
      resourcesServiceUrl - the .
      executionServiceUrl - .
      location - the location of the node.
      dataTransferPerformance - the performance of data transfer to/from the node.
      computeResources - the compute resources available at the node.
    • ExecutionNode

      public ExecutionNode(ExecutionNode other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • getXmlId

      public String getXmlId()
      getter for XMLID
      Specified by:
      getXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • setXmlId

      public void setXmlId(String id)
      Specified by:
      setXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • hasNaturalKey

      public boolean hasNaturalKey()
      Specified by:
      hasNaturalKey in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • updateUsing

      public void updateUsing(ExecutionNode other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getResourcesServiceUrl

      public String getResourcesServiceUrl()
      Returns resourcesServiceUrl Attribute.
      Returns:
      resourcesServiceUrl Attribute
    • setResourcesServiceUrl

      public void setResourcesServiceUrl(String pResourcesServiceUrl)
      Set resourcesServiceUrl Attribute.
      Parameters:
      pResourcesServiceUrl - value to set
    • withResourcesServiceUrl

      public ExecutionNode withResourcesServiceUrl(String pResourcesServiceUrl)
      fluent setter for resourcesServiceUrl Attribute.
      Parameters:
      pResourcesServiceUrl - value to set
      Returns:
      ExecutionNode
    • getExecutionServiceUrl

      public String getExecutionServiceUrl()
      Returns executionServiceUrl Attribute.
      Returns:
      executionServiceUrl Attribute
    • setExecutionServiceUrl

      public void setExecutionServiceUrl(String pExecutionServiceUrl)
      Set executionServiceUrl Attribute.
      Parameters:
      pExecutionServiceUrl - value to set
    • withExecutionServiceUrl

      public ExecutionNode withExecutionServiceUrl(String pExecutionServiceUrl)
      fluent setter for executionServiceUrl Attribute.
      Parameters:
      pExecutionServiceUrl - value to set
      Returns:
      ExecutionNode
    • getLocation

      public PhysicalLocation getLocation()
      Returns location Reference
      Returns:
      location Reference
    • setLocation

      public void setLocation(PhysicalLocation pLocation)
      Defines location Reference
      Parameters:
      pLocation - reference to set
    • getDataTransferPerformance

      public TransferPerformance getDataTransferPerformance()
      Returns dataTransferPerformance Attribute.
      Returns:
      dataTransferPerformance Attribute
    • setDataTransferPerformance

      public void setDataTransferPerformance(TransferPerformance pDataTransferPerformance)
      Set dataTransferPerformance Attribute.
      Parameters:
      pDataTransferPerformance - value to set
    • withDataTransferPerformance

      public ExecutionNode withDataTransferPerformance(TransferPerformance pDataTransferPerformance)
      fluent setter for dataTransferPerformance Attribute.
      Parameters:
      pDataTransferPerformance - value to set
      Returns:
      ExecutionNode
    • getComputeResources

      public List<ComputeResource> getComputeResources()
      Returns computeResources composition as an immutable list.
      Returns:
      computeResources composition.
    • setComputeResources

      public void setComputeResources(List<ComputeResource> pComputeResources)
      Defines whole computeResources composition.
      Parameters:
      pComputeResources - composition to set.
    • addToComputeResources

      public void addToComputeResources(ComputeResource p)
      Add a org.ivoa.dm.execution.ComputeResource to the composition.
      Parameters:
      p - org.ivoa.dm.execution.ComputeResource to add
    • removeFromComputeResources

      public void removeFromComputeResources(ComputeResource p)
      Remove a org.ivoa.dm.execution.ComputeResource from the composition.
      Parameters:
      p - org.ivoa.dm.execution.ComputeResource to remove
    • replaceInComputeResources

      public void replaceInComputeResources(ComputeResource _p)
      update a org.ivoa.dm.execution.ComputeResource in the composition.
      Parameters:
      _p - org.ivoa.dm.execution.ComputeResource to update the match is done via the database key
    • createExecutionNode

      public static ExecutionNode createExecutionNode(Consumer<ExecutionNode.ExecutionNodeBuilder> f)
      create a ExecutionNode in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>