Package org.ivoa.dm.execution
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ExecutionNode, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected List<ComputeResource>the compute resources available at the node.protected TransferPerformancethe performance of data transfer to/from the node.protected String.protected PhysicalLocationReferenceObject location : the location of the node.protected Stringthe . -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ExecutionNodeExecutionNode(String resourcesServiceUrl, String executionServiceUrl, PhysicalLocation location, TransferPerformance dataTransferPerformance, List<ComputeResource> computeResources) full parameter constructor.ExecutionNode(ExecutionNode other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.execution.ComputeResource to the composition.static ExecutionNodecreate a ExecutionNode in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns computeResources composition as an immutable list.Returns dataTransferPerformance Attribute.Returns executionServiceUrl Attribute.getId()Returns location ReferenceReturns resourcesServiceUrl Attribute.getXmlId()getter for XMLIDbooleanvoidRemove a org.ivoa.dm.execution.ComputeResource from the composition.voidupdate a org.ivoa.dm.execution.ComputeResource in the composition.voidsetComputeResources(List<ComputeResource> pComputeResources) Defines whole computeResources composition.voidsetDataTransferPerformance(TransferPerformance pDataTransferPerformance) Set dataTransferPerformance Attribute.voidsetExecutionServiceUrl(String pExecutionServiceUrl) Set executionServiceUrl Attribute.voidsetLocation(PhysicalLocation pLocation) Defines location ReferencevoidsetResourcesServiceUrl(String pResourcesServiceUrl) Set resourcesServiceUrl Attribute.voidvoidupdateUsing(ExecutionNode other) Update this object with the content of the given object.withDataTransferPerformance(TransferPerformance pDataTransferPerformance) fluent setter for dataTransferPerformance Attribute.withExecutionServiceUrl(String pExecutionServiceUrl) fluent setter for executionServiceUrl Attribute.withResourcesServiceUrl(String pResourcesServiceUrl) fluent setter for resourcesServiceUrl Attribute.
-
Field Details
-
_id
inserted database key -
resourcesServiceUrl
@VoDml(id="execution:ExecutionNode.resourcesServiceUrl", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String resourcesServiceUrlthe . : 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 locationReferenceObject location : the location of the node. ( Multiplicity : 1 ) -
dataTransferPerformance
@VoDml(id="execution:ExecutionNode.dataTransferPerformance", role=composition, type="execution:TransferPerformance", typeRole=objectType) protected TransferPerformance dataTransferPerformancethe 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> computeResourcesthe 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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
updateUsing
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
Returns resourcesServiceUrl Attribute.- Returns:
- resourcesServiceUrl Attribute
-
setResourcesServiceUrl
Set resourcesServiceUrl Attribute.- Parameters:
pResourcesServiceUrl- value to set
-
withResourcesServiceUrl
fluent setter for resourcesServiceUrl Attribute.- Parameters:
pResourcesServiceUrl- value to set- Returns:
- ExecutionNode
-
getExecutionServiceUrl
Returns executionServiceUrl Attribute.- Returns:
- executionServiceUrl Attribute
-
setExecutionServiceUrl
Set executionServiceUrl Attribute.- Parameters:
pExecutionServiceUrl- value to set
-
withExecutionServiceUrl
fluent setter for executionServiceUrl Attribute.- Parameters:
pExecutionServiceUrl- value to set- Returns:
- ExecutionNode
-
getLocation
Returns location Reference- Returns:
- location Reference
-
setLocation
Defines location Reference- Parameters:
pLocation- reference to set
-
getDataTransferPerformance
Returns dataTransferPerformance Attribute.- Returns:
- dataTransferPerformance Attribute
-
setDataTransferPerformance
Set dataTransferPerformance Attribute.- Parameters:
pDataTransferPerformance- value to set
-
withDataTransferPerformance
fluent setter for dataTransferPerformance Attribute.- Parameters:
pDataTransferPerformance- value to set- Returns:
- ExecutionNode
-
getComputeResources
Returns computeResources composition as an immutable list.- Returns:
- computeResources composition.
-
setComputeResources
Defines whole computeResources composition.- Parameters:
pComputeResources- composition to set.
-
addToComputeResources
Add a org.ivoa.dm.execution.ComputeResource to the composition.- Parameters:
p- org.ivoa.dm.execution.ComputeResource to add
-
removeFromComputeResources
Remove a org.ivoa.dm.execution.ComputeResource from the composition.- Parameters:
p- org.ivoa.dm.execution.ComputeResource to remove
-
replaceInComputeResources
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
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-