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
  • 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

      public SimpleComputeMemory(Integer min, Integer max)
      full parameter constructor.
      Parameters:
      min - .
      max - .
    • SimpleComputeMemory

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

    • updateUsing

      public void updateUsing(SimpleComputeMemory 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.
    • getMin

      public Integer getMin()
      Returns min Attribute.
      Returns:
      min Attribute
    • setMin

      public void setMin(Integer pMin)
      Set min Attribute.
      Parameters:
      pMin - value to set
    • withMin

      public SimpleComputeMemory withMin(Integer pMin)
      fluent setter for min Attribute.
      Parameters:
      pMin - value to set
      Returns:
      SimpleComputeMemory
    • getMax

      public Integer getMax()
      Returns max Attribute.
      Returns:
      max Attribute
    • setMax

      public void setMax(Integer pMax)
      Set max Attribute.
      Parameters:
      pMax - value to set
    • withMax

      public SimpleComputeMemory withMax(Integer pMax)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations