Class SimpleVolumeMount

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

@Entity @VoDml(id="execbroker:SimpleVolumeMount", role=objectType) public class SimpleVolumeMount extends AbstractVolumeMount implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple volume mount. objectType: SimpleVolumeMount
  • Field Details

    • path

      @VoDml(id="execbroker:SimpleVolumeMount.path", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String path
      The filesystem mount point. : Attribute path : multiplicity 1
    • mode

      @VoDml(id="execbroker:SimpleVolumeMount.mode", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String mode
      The read-write access mode. : Attribute mode : multiplicity 1
    • cardinality

      @VoDml(id="execbroker:SimpleVolumeMount.cardinality", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String cardinality
      If cardinality is set to INSTANCE, then this volume-mount will mount a single resource at the location set by path. If cardinality is set to CONTAINER, then this volume-mount will create a directory in the target file system, at the location set by path, and mount the resources within that directory. : Attribute cardinality : multiplicity 1
    • resources

      @VoDml(id="execbroker:SimpleVolumeMount.resources", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> resources
      A list of the data resources in this volume mount. If cardinality is set to INSTANCE then this list should only contain one resource. If cardinality is set to INSTANCE and this list has more than one resource, it should fail validation. If cardinality is set to CONTAINER then this list may contain more than one resource. : Attribute resources : multiplicity 1..*
  • Constructor Details

    • SimpleVolumeMount

      public SimpleVolumeMount()
      Creates a new SimpleVolumeMount
    • SimpleVolumeMount

      public SimpleVolumeMount(String path, String mode, String cardinality, List<String> resources, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      path - The filesystem mount point.
      mode - The read-write access mode.
      cardinality - If cardinality is set to INSTANCE, then this volume-mount will mount a single resource at the location set by path. If cardinality is set to CONTAINER, then this volume-mount will create a directory in the target file system, at the location set by path, and mount the resources within that directory.
      resources - A list of the data resources in this volume mount. If cardinality is set to INSTANCE then this list should only contain one resource. If cardinality is set to INSTANCE and this list has more than one resource, it should fail validation. If cardinality is set to CONTAINER then this list may contain more than one resource.
      kind - The component type identifier.
      meta - The component metadata.
    • SimpleVolumeMount

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

      public SimpleVolumeMount(AbstractVolumeMount superinstance, String path, String mode, String cardinality, List<String> resources)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      path - The filesystem mount point.
      mode - The read-write access mode.
      cardinality - If cardinality is set to INSTANCE, then this volume-mount will mount a single resource at the location set by path. If cardinality is set to CONTAINER, then this volume-mount will create a directory in the target file system, at the location set by path, and mount the resources within that directory.
      resources - A list of the data resources in this volume mount. If cardinality is set to INSTANCE then this list should only contain one resource. If cardinality is set to INSTANCE and this list has more than one resource, it should fail validation. If cardinality is set to CONTAINER then this list may contain more than one resource.
  • Method Details

    • copyMe

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

      public void updateUsing(SimpleVolumeMount 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.
    • getPath

      public String getPath()
      Returns path Attribute.
      Returns:
      path Attribute
    • setPath

      public void setPath(String pPath)
      Set path Attribute.
      Parameters:
      pPath - value to set
    • withPath

      public SimpleVolumeMount withPath(String pPath)
      fluent setter for path Attribute.
      Parameters:
      pPath - value to set
      Returns:
      SimpleVolumeMount
    • getMode

      public String getMode()
      Returns mode Attribute.
      Returns:
      mode Attribute
    • setMode

      public void setMode(String pMode)
      Set mode Attribute.
      Parameters:
      pMode - value to set
    • withMode

      public SimpleVolumeMount withMode(String pMode)
      fluent setter for mode Attribute.
      Parameters:
      pMode - value to set
      Returns:
      SimpleVolumeMount
    • getCardinality

      public String getCardinality()
      Returns cardinality Attribute.
      Returns:
      cardinality Attribute
    • setCardinality

      public void setCardinality(String pCardinality)
      Set cardinality Attribute.
      Parameters:
      pCardinality - value to set
    • withCardinality

      public SimpleVolumeMount withCardinality(String pCardinality)
      fluent setter for cardinality Attribute.
      Parameters:
      pCardinality - value to set
      Returns:
      SimpleVolumeMount
    • getResources

      public List<String> getResources()
      Returns resources Attribute.
      Returns:
      resources Attribute
    • setResources

      public void setResources(List<String> pResources)
      Set resources Attribute.
      Parameters:
      pResources - value to set
    • withResources

      public SimpleVolumeMount withResources(List<String> pResources)
      fluent setter for resources Attribute.
      Parameters:
      pResources - value to set
      Returns:
      SimpleVolumeMount
    • createSimpleVolumeMount

      public static SimpleVolumeMount createSimpleVolumeMount(Consumer<SimpleVolumeMount.SimpleVolumeMountBuilder> f)
      create a SimpleVolumeMount 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 AbstractVolumeMount
    • delete

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