Class SimpleComputeResource

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:SimpleComputeResource", role=objectType) public class SimpleComputeResource extends AbstractComputeResource implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple compute resource. objectType: SimpleComputeResource
  • Field Details

    • cores

      @VoDml(id="execbroker:SimpleComputeResource.cores", role=attribute, type="execbroker:SimpleComputeCores", typeRole=dataType) protected SimpleComputeCores cores
      . : Attribute cores : multiplicity 1
    • memory

      @VoDml(id="execbroker:SimpleComputeResource.memory", role=attribute, type="execbroker:SimpleComputeMemory", typeRole=dataType) protected SimpleComputeMemory memory
      . : Attribute memory : multiplicity 1
    • volumes

      @VoDml(id="execbroker:SimpleComputeResource.volumes", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> volumes
      A list of the filesystem volumes to mount. : Attribute volumes : multiplicity 1..*
  • Constructor Details

    • SimpleComputeResource

      public SimpleComputeResource()
      Creates a new SimpleComputeResource
    • SimpleComputeResource

      public SimpleComputeResource(SimpleComputeCores cores, SimpleComputeMemory memory, List<String> volumes, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      cores - .
      memory - .
      volumes - A list of the filesystem volumes to mount.
      phase - The lifecycle phase.
      schedule - The lifecycle schedule.
      kind - The component type identifier.
      meta - The component metadata.
    • SimpleComputeResource

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

      public SimpleComputeResource(AbstractComputeResource superinstance, SimpleComputeCores cores, SimpleComputeMemory memory, List<String> volumes)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      cores - .
      memory - .
      volumes - A list of the filesystem volumes to mount.
  • Method Details

    • copyMe

      public AbstractComponent copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class AbstractComputeResource
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(SimpleComputeResource 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.
    • getCores

      public SimpleComputeCores getCores()
      Returns cores Attribute.
      Returns:
      cores Attribute
    • setCores

      public void setCores(SimpleComputeCores pCores)
      Set cores Attribute.
      Parameters:
      pCores - value to set
    • withCores

      public SimpleComputeResource withCores(SimpleComputeCores pCores)
      fluent setter for cores Attribute.
      Parameters:
      pCores - value to set
      Returns:
      SimpleComputeResource
    • getMemory

      public SimpleComputeMemory getMemory()
      Returns memory Attribute.
      Returns:
      memory Attribute
    • setMemory

      public void setMemory(SimpleComputeMemory pMemory)
      Set memory Attribute.
      Parameters:
      pMemory - value to set
    • withMemory

      public SimpleComputeResource withMemory(SimpleComputeMemory pMemory)
      fluent setter for memory Attribute.
      Parameters:
      pMemory - value to set
      Returns:
      SimpleComputeResource
    • getVolumes

      public List<String> getVolumes()
      Returns volumes Attribute.
      Returns:
      volumes Attribute
    • setVolumes

      public void setVolumes(List<String> pVolumes)
      Set volumes Attribute.
      Parameters:
      pVolumes - value to set
    • withVolumes

      public SimpleComputeResource withVolumes(List<String> pVolumes)
      fluent setter for volumes Attribute.
      Parameters:
      pVolumes - value to set
      Returns:
      SimpleComputeResource
    • createSimpleComputeResource

      create a SimpleComputeResource 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
      Overrides:
      forceLoad in class AbstractComputeResource
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>