Package org.ivoa.dm.executionbroker
Class SimpleComputeCores
java.lang.Object
org.ivoa.dm.executionbroker.SimpleComputeCores
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:SimpleComputeCores",
role=dataType)
public class SimpleComputeCores
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
The number of CPU cores requested by the user. The minimum represents the lower limit that the excution requires. The maximum represents the highest number of cores that the excution can use.
dataType: SimpleComputeCores
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimpleComputeCores, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SimpleComputeCoresSimpleComputeCores(Integer min, Integer max) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleComputeCorescreate a SimpleComputeCores in functional builder style.voidgetMax()Returns max Attribute.getMin()Returns min Attribute.voidSet max Attribute.voidSet min Attribute.voidupdateUsing(SimpleComputeCores other) Update this object with the content of the given object.fluent setter for max Attribute.fluent setter for min Attribute.
-
Field Details
-
min
@VoDml(id="execbroker:SimpleComputeCores.min", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer min. : Attribute min : multiplicity 1 -
max
@VoDml(id="execbroker:SimpleComputeCores.max", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer max. : Attribute max : multiplicity 1
-
-
Constructor Details
-
SimpleComputeCores
public SimpleComputeCores()Creates a new SimpleComputeCores -
SimpleComputeCores
full parameter constructor.- Parameters:
min- .max- .
-
SimpleComputeCores
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
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.
-
getMin
Returns min Attribute.- Returns:
- min Attribute
-
setMin
Set min Attribute.- Parameters:
pMin- value to set
-
withMin
fluent setter for min Attribute.- Parameters:
pMin- value to set- Returns:
- SimpleComputeCores
-
getMax
Returns max Attribute.- Returns:
- max Attribute
-
setMax
Set max Attribute.- Parameters:
pMax- value to set
-
withMax
fluent setter for max Attribute.- Parameters:
pMax- value to set- Returns:
- SimpleComputeCores
-
createSimpleComputeCores
public static SimpleComputeCores createSimpleComputeCores(Consumer<SimpleComputeCores.SimpleComputeCoresBuilder> f) create a SimpleComputeCores 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
-