Class DockerExternalPort

java.lang.Object
org.ivoa.dm.executionbroker.DockerExternalPort
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations

@Embeddable @VoDml(id="execbroker:DockerExternalPort", role=dataType) public class DockerExternalPort extends Object implements org.ivoa.vodml.jpa.JPAManipulations
Details of an external network port accessible from outside. dataType: DockerExternalPort
  • Field Details

    • port

      @VoDml(id="execbroker:DockerExternalPort.port", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer port
      The port number of the external interface. The service will populate this value when it sets up the execution. : Attribute port : multiplicity 1
    • addresses

      @VoDml(id="execbroker:DockerExternalPort.addresses", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> addresses
      A list of public hostnames or IPv4 or IPv6 addresses for the external interface. The service will populate this list when it sets up the execution. : Attribute addresses : multiplicity 1..*
  • Constructor Details

    • DockerExternalPort

      public DockerExternalPort()
      Creates a new DockerExternalPort
    • DockerExternalPort

      public DockerExternalPort(Integer port, List<String> addresses)
      full parameter constructor.
      Parameters:
      port - The port number of the external interface. The service will populate this value when it sets up the execution.
      addresses - A list of public hostnames or IPv4 or IPv6 addresses for the external interface. The service will populate this list when it sets up the execution.
    • DockerExternalPort

      public DockerExternalPort(DockerExternalPort other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • updateUsing

      public void updateUsing(DockerExternalPort other)
      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

      public Integer getPort()
      Returns port Attribute.
      Returns:
      port Attribute
    • setPort

      public void setPort(Integer pPort)
      Set port Attribute.
      Parameters:
      pPort - value to set
    • withPort

      public DockerExternalPort withPort(Integer pPort)
      fluent setter for port Attribute.
      Parameters:
      pPort - value to set
      Returns:
      DockerExternalPort
    • getAddresses

      public List<String> getAddresses()
      Returns addresses Attribute.
      Returns:
      addresses Attribute
    • setAddresses

      public void setAddresses(List<String> pAddresses)
      Set addresses Attribute.
      Parameters:
      pAddresses - value to set
    • withAddresses

      public DockerExternalPort withAddresses(List<String> pAddresses)
      fluent setter for addresses Attribute.
      Parameters:
      pAddresses - value to set
      Returns:
      DockerExternalPort
    • createDockerExternalPort

      public static DockerExternalPort createDockerExternalPort(Consumer<DockerExternalPort.DockerExternalPortBuilder> f)
      create a DockerExternalPort in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations