Class SingularityContainer

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

@Entity @VoDml(id="execbroker:SingularityContainer", role=objectType) public class SingularityContainer extends AbstractExecutable implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Details for a Singularity container executable. See https://docs.sylabs.io/guides/latest/user-guide/. objectType: SingularityContainer
  • Field Details

    • location

      @VoDml(id="execbroker:SingularityContainer.location", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String location
      The URL to download the container image from. : Attribute location : multiplicity 1
  • Constructor Details

    • SingularityContainer

      public SingularityContainer()
      Creates a new SingularityContainer
    • SingularityContainer

      public SingularityContainer(String location, LifecycleComponent lifecycle, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      location - The URL to download the container image from.
      lifecycle - .
      kind - The component type identifier.
      meta - The component metadata.
    • SingularityContainer

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

      public SingularityContainer(AbstractExecutable superinstance, String location)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      location - The URL to download the container image from.
  • Method Details

    • copyMe

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

      public void updateUsing(SingularityContainer 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.
    • getLocation

      public String getLocation()
      Returns location Attribute.
      Returns:
      location Attribute
    • setLocation

      public void setLocation(String pLocation)
      Set location Attribute.
      Parameters:
      pLocation - value to set
    • withLocation

      public SingularityContainer withLocation(String pLocation)
      fluent setter for location Attribute.
      Parameters:
      pLocation - value to set
      Returns:
      SingularityContainer
    • createSingularityContainer

      create a SingularityContainer 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 AbstractExecutable
    • delete

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