Package org.ivoa.dm.executionbroker
Class SimpleComputeMemory
java.lang.Object
org.ivoa.dm.executionbroker.SimpleComputeMemory
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:SimpleComputeMemory",
role=dataType)
public class SimpleComputeMemory
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
The amount of memory requested by the user. The minimum represents the lower limit that the excution requires. The maximum represents the highest amount of memory that the excution can use. All values are given in multiples of 'GiB'.
dataType: SimpleComputeMemory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimpleComputeMemory, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SimpleComputeMemorySimpleComputeMemory(Integer min, Integer max) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleComputeMemorycreate a SimpleComputeMemory in functional builder style.voidgetMax()Returns max Attribute.getMin()Returns min Attribute.voidSet max Attribute.voidSet min Attribute.voidupdateUsing(SimpleComputeMemory 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:SimpleComputeMemory.min", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer min. : Attribute min : multiplicity 1 -
max
@VoDml(id="execbroker:SimpleComputeMemory.max", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer max. : Attribute max : multiplicity 1
-
-
Constructor Details
-
SimpleComputeMemory
public SimpleComputeMemory()Creates a new SimpleComputeMemory -
SimpleComputeMemory
full parameter constructor.- Parameters:
min- .max- .
-
SimpleComputeMemory
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:
- SimpleComputeMemory
-
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:
- SimpleComputeMemory
-
createSimpleComputeMemory
public static SimpleComputeMemory createSimpleComputeMemory(Consumer<SimpleComputeMemory.SimpleComputeMemoryBuilder> f) create a SimpleComputeMemory 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
-