Package org.ivoa.dm.executionbroker
Class SingularityContainer
java.lang.Object
org.ivoa.dm.executionbroker.AbstractComponent
org.ivoa.dm.executionbroker.AbstractExecutable
org.ivoa.dm.executionbroker.SingularityContainer
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:SingularityContainer",
role=objectType)
public class SingularityContainer
extends AbstractExecutable
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Details for a Singularity container executable. See https://docs.sylabs.io/guides/latest/user-guide/.
objectType: SingularityContainer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SingularityContainer, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.AbstractExecutable
AbstractExecutable.AbstractExecutableBuilder -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.AbstractExecutable
lifecycleFields inherited from class org.ivoa.dm.executionbroker.AbstractComponent
_id, kind, meta -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SingularityContainerSingularityContainer(String location, LifecycleComponent lifecycle, String kind, ComponentMetadata meta) full parameter constructor.SingularityContainer(AbstractExecutable superinstance, String location) Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static SingularityContainercreate a SingularityContainer in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns location Attribute.voidsetLocation(String pLocation) Set location Attribute.voidupdateUsing(SingularityContainer other) Update this object with the content of the given object.withLocation(String pLocation) fluent setter for location Attribute.Methods inherited from class org.ivoa.dm.executionbroker.AbstractExecutable
createAbstractExecutable, getLifecycle, setLifecycle, updateUsing, withLifecycleMethods 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
-
location
@VoDml(id="execbroker:SingularityContainer.location", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String locationThe URL to download the container image from. : Attribute location : multiplicity 1
-
-
Constructor Details
-
SingularityContainer
public SingularityContainer()Creates a new SingularityContainer -
SingularityContainer
public SingularityContainer(String location, LifecycleComponent lifecycle, String kind, ComponentMetadata meta) full parameter constructor.- Parameters:
location- The URL to download the container image from.lifecycle- .kind- The component type identifier.meta- The component metadata.
-
SingularityContainer
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
SingularityContainer
Constructor from supertype instance.- Parameters:
superinstance- The supertype.location- The URL to download the container image from.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Overrides:
copyMein classAbstractExecutable- 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.
-
getLocation
Returns location Attribute.- Returns:
- location Attribute
-
setLocation
Set location Attribute.- Parameters:
pLocation- value to set
-
withLocation
fluent setter for location Attribute.- Parameters:
pLocation- value to set- Returns:
- SingularityContainer
-
createSingularityContainer
public static SingularityContainer createSingularityContainer(Consumer<SingularityContainer.SingularityContainerBuilder> f) create a SingularityContainer 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 classAbstractExecutable
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Overrides:
deletein classAbstractExecutable
-