Package org.ivoa.dm.executionbroker
Class OfferSetRequest
java.lang.Object
org.ivoa.dm.executionbroker.ExecutionRequestComponents
org.ivoa.dm.executionbroker.OfferSetRequest
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:OfferSetRequest",
role=objectType)
public class OfferSetRequest
extends ExecutionRequestComponents
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A request for a set of offers for an execution.
objectType: OfferSetRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for OfferSetRequest, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.ExecutionRequestComponents
ExecutionRequestComponents.ExecutionRequestComponentsBuilder -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.ExecutionRequestComponents
_id, compute, data, executable, storage, volumes -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OfferSetRequestOfferSetRequest(ExecutionRequestComponents superinstance, RequestedScheduleBlock schedule) Constructor from supertype instance.OfferSetRequest(OfferSetRequest other) Copy Constructor.OfferSetRequest(RequestedScheduleBlock schedule, AbstractExecutable executable, AbstractComputeResource compute, List<AbstractStorageResource> storage, List<AbstractVolumeMount> volumes, List<AbstractDataResource> data) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static OfferSetRequestcreate a OfferSetRequest in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns schedule Attribute.voidsetSchedule(RequestedScheduleBlock pSchedule) Set schedule Attribute.voidupdateUsing(OfferSetRequest other) Update this object with the content of the given object.withSchedule(RequestedScheduleBlock pSchedule) fluent setter for schedule Attribute.Methods inherited from class org.ivoa.dm.executionbroker.ExecutionRequestComponents
addToData, addToStorage, addToVolumes, createExecutionRequestComponents, getCompute, getData, getExecutable, getId, getStorage, getVolumes, removeFromData, removeFromStorage, removeFromVolumes, replaceInData, replaceInStorage, replaceInVolumes, setCompute, setData, setExecutable, setStorage, setVolumes, updateUsing, withCompute, withExecutableMethods 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
-
schedule
@VoDml(id="execbroker:OfferSetRequest.schedule", role=composition, type="execbroker:RequestedScheduleBlock", typeRole=objectType) protected RequestedScheduleBlock schedule. composition schedule : ( Multiplicity : 1 )
-
-
Constructor Details
-
OfferSetRequest
public OfferSetRequest()Creates a new OfferSetRequest -
OfferSetRequest
public OfferSetRequest(RequestedScheduleBlock schedule, AbstractExecutable executable, AbstractComputeResource compute, List<AbstractStorageResource> storage, List<AbstractVolumeMount> volumes, List<AbstractDataResource> data) full parameter constructor.- Parameters:
schedule- .executable- .compute- .storage- .volumes- .data- .
-
OfferSetRequest
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
OfferSetRequest
Constructor from supertype instance.- Parameters:
superinstance- The supertype.schedule- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Overrides:
copyMein classExecutionRequestComponents- 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.
-
getSchedule
Returns schedule Attribute.- Returns:
- schedule Attribute
-
setSchedule
Set schedule Attribute.- Parameters:
pSchedule- value to set
-
withSchedule
fluent setter for schedule Attribute.- Parameters:
pSchedule- value to set- Returns:
- OfferSetRequest
-
createOfferSetRequest
public static OfferSetRequest createOfferSetRequest(Consumer<OfferSetRequest.OfferSetRequestBuilder> f) create a OfferSetRequest 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 classExecutionRequestComponents
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Overrides:
deletein classExecutionRequestComponents
-