Package org.ivoa.dm.executionbroker
Class DockerNetworkPort
java.lang.Object
org.ivoa.dm.executionbroker.DockerNetworkPort
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:DockerNetworkPort",
role=objectType)
public class DockerNetworkPort
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Details of a network port on the container made available for connection from outside.
objectType: DockerNetworkPort
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DockerNetworkPort, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected BooleanA flag to indicate whether this port should be listed in the access methods for the execution.protected DockerExternalPort.protected DockerInternalPort.protected StringThe path component of an access URL.protected StringThe network protocol to use, typically one of [UDP, TCP, HTTP, HTTPS], with a default of `TCP`. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DockerNetworkPortDockerNetworkPort(Boolean access, DockerInternalPort internal, DockerExternalPort external, String protocol, String path) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic DockerNetworkPortcreate a DockerNetworkPort in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns access Attribute.Returns external Attribute.getId()Returns internal Attribute.getPath()Returns path Attribute.Returns protocol Attribute.voidSet access Attribute.voidsetExternal(DockerExternalPort pExternal) Set external Attribute.voidsetInternal(DockerInternalPort pInternal) Set internal Attribute.voidSet path Attribute.voidsetProtocol(String pProtocol) Set protocol Attribute.voidupdateUsing(DockerNetworkPort other) Update this object with the content of the given object.withAccess(Boolean pAccess) fluent setter for access Attribute.withExternal(DockerExternalPort pExternal) fluent setter for external Attribute.withInternal(DockerInternalPort pInternal) fluent setter for internal Attribute.fluent setter for path Attribute.withProtocol(String pProtocol) fluent setter for protocol Attribute.
-
Field Details
-
_id
inserted database key -
access
@VoDml(id="execbroker:DockerNetworkPort.access", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean accessA flag to indicate whether this port should be listed in the access methods for the execution. : Attribute access : multiplicity 1 -
internal
@VoDml(id="execbroker:DockerNetworkPort.internal", role=attribute, type="execbroker:DockerInternalPort", typeRole=dataType) protected DockerInternalPort internal. : Attribute internal : multiplicity 1 -
external
@VoDml(id="execbroker:DockerNetworkPort.external", role=attribute, type="execbroker:DockerExternalPort", typeRole=dataType) protected DockerExternalPort external. : Attribute external : multiplicity 1 -
protocol
@VoDml(id="execbroker:DockerNetworkPort.protocol", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String protocolThe network protocol to use, typically one of [UDP, TCP, HTTP, HTTPS], with a default of `TCP`. This should be defined as part of the description of the executable supplied by the client. The `HTTP` and `HTTPS` values further specify the protocol to use on top of `TCP`. Specifying `HTTPS` may help to meet firewall restrictions at some sites. : Attribute protocol : multiplicity 1 -
path
@VoDml(id="execbroker:DockerNetworkPort.path", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String pathThe path component of an access URL. This should be defined as part of the description of the executable supplied by the client. This can be used to provide the path of a notebook within a JupyterNotebook container. : Attribute path : multiplicity 1
-
-
Constructor Details
-
DockerNetworkPort
public DockerNetworkPort()Creates a new DockerNetworkPort -
DockerNetworkPort
public DockerNetworkPort(Boolean access, DockerInternalPort internal, DockerExternalPort external, String protocol, String path) full parameter constructor.- Parameters:
access- A flag to indicate whether this port should be listed in the access methods for the execution.internal- .external- .protocol- The network protocol to use, typically one of [UDP, TCP, HTTP, HTTPS], with a default of `TCP`. This should be defined as part of the description of the executable supplied by the client. The `HTTP` and `HTTPS` values further specify the protocol to use on top of `TCP`. Specifying `HTTPS` may help to meet firewall restrictions at some sites.path- The path component of an access URL. This should be defined as part of the description of the executable supplied by the client. This can be used to provide the path of a notebook within a JupyterNotebook container.
-
DockerNetworkPort
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
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.
-
getAccess
Returns access Attribute.- Returns:
- access Attribute
-
setAccess
Set access Attribute.- Parameters:
pAccess- value to set
-
withAccess
fluent setter for access Attribute.- Parameters:
pAccess- value to set- Returns:
- DockerNetworkPort
-
getInternal
Returns internal Attribute.- Returns:
- internal Attribute
-
setInternal
Set internal Attribute.- Parameters:
pInternal- value to set
-
withInternal
fluent setter for internal Attribute.- Parameters:
pInternal- value to set- Returns:
- DockerNetworkPort
-
getExternal
Returns external Attribute.- Returns:
- external Attribute
-
setExternal
Set external Attribute.- Parameters:
pExternal- value to set
-
withExternal
fluent setter for external Attribute.- Parameters:
pExternal- value to set- Returns:
- DockerNetworkPort
-
getProtocol
Returns protocol Attribute.- Returns:
- protocol Attribute
-
setProtocol
Set protocol Attribute.- Parameters:
pProtocol- value to set
-
withProtocol
fluent setter for protocol Attribute.- Parameters:
pProtocol- value to set- Returns:
- DockerNetworkPort
-
getPath
Returns path Attribute.- Returns:
- path Attribute
-
setPath
Set path Attribute.- Parameters:
pPath- value to set
-
withPath
fluent setter for path Attribute.- Parameters:
pPath- value to set- Returns:
- DockerNetworkPort
-
createDockerNetworkPort
public static DockerNetworkPort createDockerNetworkPort(Consumer<DockerNetworkPort.DockerNetworkPortBuilder> f) create a DockerNetworkPort 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-