Package org.ivoa.dm.executionbroker
Class DockerPlatformSpec
java.lang.Object
org.ivoa.dm.executionbroker.DockerPlatformSpec
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:DockerPlatformSpec",
role=dataType)
public class DockerPlatformSpec
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
Details of the platform the container image is built for. Debatable whether we need to have this here. The information will be in the container, and the platform will probably need to check it anyway to make sure. So why have the duplicate information ?.
dataType: DockerPlatformSpec
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DockerPlatformSpec, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DockerPlatformSpecDockerPlatformSpec(String architecture, String os) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic DockerPlatformSpeccreate a DockerPlatformSpec in functional builder style.voidReturns architecture Attribute.getOs()Returns os Attribute.voidsetArchitecture(String pArchitecture) Set architecture Attribute.voidSet os Attribute.voidupdateUsing(DockerPlatformSpec other) Update this object with the content of the given object.withArchitecture(String pArchitecture) fluent setter for architecture Attribute.fluent setter for os Attribute.
-
Field Details
-
architecture
@VoDml(id="execbroker:DockerPlatformSpec.architecture", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String architectureThe CPU architecture the image is built for. The default is `amd64`. : Attribute architecture : multiplicity 1 -
os
@VoDml(id="execbroker:DockerPlatformSpec.os", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String osThe operating system the image is built for. The default is `linux`. : Attribute os : multiplicity 1
-
-
Constructor Details
-
DockerPlatformSpec
public DockerPlatformSpec()Creates a new DockerPlatformSpec -
DockerPlatformSpec
full parameter constructor.- Parameters:
architecture- The CPU architecture the image is built for. The default is `amd64`.os- The operating system the image is built for. The default is `linux`.
-
DockerPlatformSpec
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
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.
-
getArchitecture
Returns architecture Attribute.- Returns:
- architecture Attribute
-
setArchitecture
Set architecture Attribute.- Parameters:
pArchitecture- value to set
-
withArchitecture
fluent setter for architecture Attribute.- Parameters:
pArchitecture- value to set- Returns:
- DockerPlatformSpec
-
getOs
Returns os Attribute.- Returns:
- os Attribute
-
setOs
Set os Attribute.- Parameters:
pOs- value to set
-
withOs
fluent setter for os Attribute.- Parameters:
pOs- value to set- Returns:
- DockerPlatformSpec
-
createDockerPlatformSpec
public static DockerPlatformSpec createDockerPlatformSpec(Consumer<DockerPlatformSpec.DockerPlatformSpecBuilder> f) create a DockerPlatformSpec 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
-