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

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

      public SimpleComputeCores(SimpleComputeCores 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(SimpleComputeCores 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 SimpleComputeCores withMin(Integer pMin)
      fluent setter for min Attribute.
      Parameters:
      pMin - value to set
      Returns:
      SimpleComputeCores
    • 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 SimpleComputeCores withMax(Integer pMax)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations