Class SqlGatewayRestOptions

java.lang.Object
org.apache.flink.table.gateway.rest.util.SqlGatewayRestOptions

@PublicEvolving public class SqlGatewayRestOptions extends Object
Options to configure SqlGatewayRestEndpoint.

By default, the user must select a local address to set ADDRESS, then the server will bind the address to all the local IPV4 address (0.0.0.0) and bind the port to BIND_PORT(fallback to the default value of PORT).

1. If user specifies BIND_ADDRESS, then the server will bind to BIND_ADDRESS and suggest the user that the current client should connect to this BIND_ADDRESS rather than ADDRESS in the log.

2. If user specifies PORT, then the server will bind the port to BIND_PORT(fallback to the value of PORT).

3. If user specifies BIND_PORT, then the server will ignore PORT and directly bind the port to the value of BIND_PORT.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.flink.configuration.ConfigOption<String>
    The address that should be used by clients to connect to the sql gateway server.
    static final org.apache.flink.configuration.ConfigOption<String>
    The address that the sql gateway server binds itself to.
    static final org.apache.flink.configuration.ConfigOption<String>
    The port range that the sql gateway server could bind itself to.
    static final org.apache.flink.configuration.ConfigOption<Integer>
    The port that the client connects to.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ADDRESS

      public static final org.apache.flink.configuration.ConfigOption<String> ADDRESS
      The address that should be used by clients to connect to the sql gateway server.
    • BIND_ADDRESS

      public static final org.apache.flink.configuration.ConfigOption<String> BIND_ADDRESS
      The address that the sql gateway server binds itself to.
    • BIND_PORT

      public static final org.apache.flink.configuration.ConfigOption<String> BIND_PORT
      The port range that the sql gateway server could bind itself to.
    • PORT

      public static final org.apache.flink.configuration.ConfigOption<Integer> PORT
      The port that the client connects to.
  • Constructor Details

    • SqlGatewayRestOptions

      public SqlGatewayRestOptions()