Package org.ivoa.dm.executionbroker
Class AbstractComputeResource
java.lang.Object
org.ivoa.dm.executionbroker.AbstractComponent
org.ivoa.dm.executionbroker.LifecycleComponent
org.ivoa.dm.executionbroker.AbstractComputeResource
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
SimpleComputeResource
@Entity
@VoDml(id="execbroker:AbstractComputeResource",
role=objectType)
public abstract class AbstractComputeResource
extends LifecycleComponent
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Abstract base class for compute resources.
objectType: AbstractComputeResource
-
Field Summary
Fields 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 AbstractComputeResourceCopy Constructor.AbstractComputeResource(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.voidvoidUpdate this object with the content of the given object.Methods 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
delete, getId
-
Constructor Details
-
AbstractComputeResource
public AbstractComputeResource()Creates a new AbstractComputeResource -
AbstractComputeResource
public AbstractComputeResource(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.
-
AbstractComputeResource
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 classLifecycleComponent- 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.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations- Overrides:
forceLoadin classLifecycleComponent
-