Class InstancePortBinding


  • public class InstancePortBinding
    extends JsonRepresentable
    The ports available on an instance
         {
             "port": "65224/tcp",
             "ip": "127.0.0.1",
             "advertise": true
         }
     
    • Constructor Detail

      • InstancePortBinding

        @Contract(pure=true)
        public InstancePortBinding​(java.lang.String port,
                                   java.lang.String internalPort,
                                   java.lang.String ip,
                                   boolean advertise)
        Parameters:
        port - the portspec ie "1234/tcp"
        internalPort - the internal port
        ip - the ip its bound to
        advertise - should regular users be shown this port?
    • Method Detail

      • getPort

        public java.lang.String getPort()
      • getIp

        public java.lang.String getIp()
      • getAdvertise

        public boolean getAdvertise()
      • getInternalPort

        public java.lang.String getInternalPort()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object