Class RucioDataResource

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

@Entity @VoDml(id="execbroker:RucioDataResource", role=objectType) public class RucioDataResource extends AbstractDataResource implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Metadata describing a data resource in a Rucio storage system. objectType: RucioDataResource
  • Field Details

    • rucio

      @VoDml(id="execbroker:RucioDataResource.rucio", role=attribute, type="execbroker:RucioDataResourceBlock", typeRole=dataType) protected RucioDataResourceBlock rucio
      . : Attribute rucio : multiplicity 1
  • Constructor Details

    • RucioDataResource

      public RucioDataResource()
      Creates a new RucioDataResource
    • RucioDataResource

      public RucioDataResource(RucioDataResourceBlock rucio, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      rucio - .
      phase - The lifecycle phase.
      schedule - The lifecycle schedule.
      kind - The component type identifier.
      meta - The component metadata.
    • RucioDataResource

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

      public RucioDataResource(AbstractDataResource superinstance, RucioDataResourceBlock rucio)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      rucio - .
  • Method Details

    • copyMe

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

      public void updateUsing(RucioDataResource 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.
    • getRucio

      public RucioDataResourceBlock getRucio()
      Returns rucio Attribute.
      Returns:
      rucio Attribute
    • setRucio

      public void setRucio(RucioDataResourceBlock pRucio)
      Set rucio Attribute.
      Parameters:
      pRucio - value to set
    • withRucio

      public RucioDataResource withRucio(RucioDataResourceBlock pRucio)
      fluent setter for rucio Attribute.
      Parameters:
      pRucio - value to set
      Returns:
      RucioDataResource
    • createRucioDataResource

      public static RucioDataResource createRucioDataResource(Consumer<RucioDataResource.RucioDataResourceBuilder> f)
      create a RucioDataResource 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 AbstractDataResource
    • delete

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