Package org.ivoa.dm.executionbroker
Class RucioDataResource
java.lang.Object
org.ivoa.dm.executionbroker.AbstractComponent
org.ivoa.dm.executionbroker.LifecycleComponent
org.ivoa.dm.executionbroker.AbstractDataResource
org.ivoa.dm.executionbroker.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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for RucioDataResource, mainly for use in the functional builder pattern. -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.LifecycleComponent
phase, scheduleFields inherited from class org.ivoa.dm.executionbroker.AbstractComponent
_id, kind, meta -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RucioDataResourceRucioDataResource(AbstractDataResource superinstance, RucioDataResourceBlock rucio) Constructor from supertype instance.Copy Constructor.RucioDataResource(RucioDataResourceBlock rucio, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static RucioDataResourcecreate a RucioDataResource in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetRucio()Returns rucio Attribute.voidsetRucio(RucioDataResourceBlock pRucio) Set rucio Attribute.voidupdateUsing(RucioDataResource other) Update this object with the content of the given object.withRucio(RucioDataResourceBlock pRucio) fluent setter for rucio Attribute.Methods inherited from class org.ivoa.dm.executionbroker.AbstractDataResource
updateUsingMethods inherited from class org.ivoa.dm.executionbroker.LifecycleComponent
getPhase, getSchedule, setPhase, setSchedule, updateUsing, withPhase, withScheduleMethods inherited from class org.ivoa.dm.executionbroker.AbstractComponent
getId, getKind, getMeta, setKind, setMeta, updateUsing, withKind, withMetaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
-
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
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
RucioDataResource
Constructor from supertype instance.- Parameters:
superinstance- The supertype.rucio- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMein classAbstractDataResource- Returns:
- the cloned object.
-
updateUsing
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
Returns rucio Attribute.- Returns:
- rucio Attribute
-
setRucio
Set rucio Attribute.- Parameters:
pRucio- value to set
-
withRucio
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations- Overrides:
forceLoadin classAbstractDataResource
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-