Package org.ivoa.dm.executionbroker
Class LifecycleComponent
java.lang.Object
org.ivoa.dm.executionbroker.AbstractComponent
org.ivoa.dm.executionbroker.LifecycleComponent
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
AbstractComputeResource,AbstractDataResource,AbstractStorageResource
@Entity
@VoDml(id="execbroker:LifecycleComponent",
role=objectType)
public abstract class LifecycleComponent
extends AbstractComponent
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A component with a lifecycle.
objectType: LifecycleComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LifecyclePhaseThe lifecycle phase.protected LifecycleScheduleThe lifecycle schedule.Fields inherited from class org.ivoa.dm.executionbroker.AbstractComponent
_id, kind, meta -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LifecycleComponentCopy Constructor.LifecycleComponent(LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractComponentcopyMe()make a clone of the object taking into account current polymorhic type.voidgetPhase()Returns phase Attribute.Returns schedule Attribute.voidsetPhase(LifecyclePhase pPhase) Set phase Attribute.voidsetSchedule(LifecycleSchedule pSchedule) Set schedule Attribute.voidupdateUsing(LifecycleComponent other) Update this object with the content of the given object.withPhase(LifecyclePhase pPhase) fluent setter for phase Attribute.withSchedule(LifecycleSchedule pSchedule) fluent setter for schedule Attribute.Methods 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
delete, getId
-
Field Details
-
phase
@VoDml(id="execbroker:LifecycleComponent.phase", role=attribute, type="execbroker:LifecyclePhase", typeRole=enumeration) protected LifecyclePhase phaseThe lifecycle phase. : Attribute phase : multiplicity 1 -
schedule
@VoDml(id="execbroker:LifecycleComponent.schedule", role=attribute, type="execbroker:LifecycleSchedule", typeRole=dataType) protected LifecycleSchedule scheduleThe lifecycle schedule. : Attribute schedule : multiplicity 1
-
-
Constructor Details
-
LifecycleComponent
public LifecycleComponent()Creates a new LifecycleComponent -
LifecycleComponent
public LifecycleComponent(LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta) full parameter constructor.- Parameters:
phase- The lifecycle phase.schedule- The lifecycle schedule.kind- The component type identifier.meta- The component metadata.
-
LifecycleComponent
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMein classAbstractComponent- 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.
-
getPhase
Returns phase Attribute.- Returns:
- phase Attribute
-
setPhase
Set phase Attribute.- Parameters:
pPhase- value to set
-
withPhase
fluent setter for phase Attribute.- Parameters:
pPhase- value to set- Returns:
- LifecycleComponent
-
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:
- LifecycleComponent
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations- Overrides:
forceLoadin classAbstractComponent
-