Package org.ivoa.dm.executionbroker
Class DockerInternalPort
java.lang.Object
org.ivoa.dm.executionbroker.DockerInternalPort
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:DockerInternalPort",
role=dataType)
public class DockerInternalPort
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
Details of an internal network port on a container.
dataType: DockerInternalPort
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DockerInternalPort, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DockerInternalPortDockerInternalPort(Integer port) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic DockerInternalPortcreate a DockerInternalPort in functional builder style.voidgetPort()Returns port Attribute.voidSet port Attribute.voidupdateUsing(DockerInternalPort other) Update this object with the content of the given object.fluent setter for port Attribute.
-
Field Details
-
port
@VoDml(id="execbroker:DockerInternalPort.port", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer portThe port number on the container to publish. This should be defined as part of the description of the executable. : Attribute port : multiplicity 1
-
-
Constructor Details
-
DockerInternalPort
public DockerInternalPort()Creates a new DockerInternalPort -
DockerInternalPort
full parameter constructor.- Parameters:
port- The port number on the container to publish. This should be defined as part of the description of the executable.
-
DockerInternalPort
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.
-
getPort
Returns port Attribute.- Returns:
- port Attribute
-
setPort
Set port Attribute.- Parameters:
pPort- value to set
-
withPort
fluent setter for port Attribute.- Parameters:
pPort- value to set- Returns:
- DockerInternalPort
-
createDockerInternalPort
public static DockerInternalPort createDockerInternalPort(Consumer<DockerInternalPort.DockerInternalPortBuilder> f) create a DockerInternalPort 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
-