Package org.ivoa.dm.executionbroker
Class ScheduledExecutionSession
java.lang.Object
org.ivoa.dm.executionbroker.AbstractExecutionSession
org.ivoa.dm.executionbroker.SimpleExecutionSession
org.ivoa.dm.executionbroker.ScheduledExecutionSession
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:ScheduledExecutionSession",
role=objectType)
public class ScheduledExecutionSession
extends SimpleExecutionSession
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A scheduled execution session.
objectType: ScheduledExecutionSession
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ScheduledExecutionSession, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.SimpleExecutionSession
SimpleExecutionSession.SimpleExecutionSessionBuilderNested classes/interfaces inherited from class org.ivoa.dm.executionbroker.AbstractExecutionSession
AbstractExecutionSession.AbstractExecutionSessionBuilder -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.SimpleExecutionSession
components, connectors, expires, phaseFields inherited from class org.ivoa.dm.executionbroker.AbstractExecutionSession
_id -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ScheduledExecutionSessionScheduledExecutionSession(ScheduledExecutionSchedule schedule, SimpleExecutionSessionPhase phase, Date expires, SimpleExecutionComponents components, List<SimpleSessionConnector> connectors) full parameter constructor.Copy Constructor.ScheduledExecutionSession(SimpleExecutionSession superinstance, ScheduledExecutionSchedule schedule) Constructor from supertype instance. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static ScheduledExecutionSessioncreateScheduledExecutionSession(Consumer<ScheduledExecutionSession.ScheduledExecutionSessionBuilder> f) create a ScheduledExecutionSession in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns schedule Attribute.voidsetSchedule(ScheduledExecutionSchedule pSchedule) Set schedule Attribute.voidUpdate this object with the content of the given object.withSchedule(ScheduledExecutionSchedule pSchedule) fluent setter for schedule Attribute.Methods inherited from class org.ivoa.dm.executionbroker.SimpleExecutionSession
addToConnectors, createSimpleExecutionSession, getComponents, getConnectors, getExpires, getPhase, removeFromConnectors, replaceInConnectors, setComponents, setConnectors, setExpires, setPhase, updateUsing, withComponents, withExpires, withPhaseMethods inherited from class org.ivoa.dm.executionbroker.AbstractExecutionSession
createAbstractExecutionSession, getId, updateUsingMethods 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:ScheduledExecutionSession.schedule", role=composition, type="execbroker:ScheduledExecutionSchedule", typeRole=objectType) protected ScheduledExecutionSchedule schedule. composition schedule : ( Multiplicity : 1 )
-
-
Constructor Details
-
ScheduledExecutionSession
public ScheduledExecutionSession()Creates a new ScheduledExecutionSession -
ScheduledExecutionSession
public ScheduledExecutionSession(ScheduledExecutionSchedule schedule, SimpleExecutionSessionPhase phase, Date expires, SimpleExecutionComponents components, List<SimpleSessionConnector> connectors) full parameter constructor.- Parameters:
schedule- .phase- .expires- The date and time when this offer expires. Only valid while the state is OFFERED.components- .connectors- A list of connectors to interact with the session.
-
ScheduledExecutionSession
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
ScheduledExecutionSession
public ScheduledExecutionSession(SimpleExecutionSession superinstance, ScheduledExecutionSchedule schedule) 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 classSimpleExecutionSession- 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:
- ScheduledExecutionSession
-
createScheduledExecutionSession
public static ScheduledExecutionSession createScheduledExecutionSession(Consumer<ScheduledExecutionSession.ScheduledExecutionSessionBuilder> f) create a ScheduledExecutionSession 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 classSimpleExecutionSession
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Overrides:
deletein classSimpleExecutionSession
-