@PublicEvolving public class SqlGatewayRestOptions extends Object
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.
Modifier and Type | Field and Description |
---|---|
static ConfigOption<String> |
ADDRESS
The address that should be used by clients to connect to the sql gateway server.
|
static ConfigOption<String> |
BIND_ADDRESS
The address that the sql gateway server binds itself to.
|
static ConfigOption<String> |
BIND_PORT
The port range that the sql gateway server could bind itself to.
|
static ConfigOption<Integer> |
PORT
The port that the client connects to.
|
Constructor and Description |
---|
SqlGatewayRestOptions() |
public static final ConfigOption<String> ADDRESS
public static final ConfigOption<String> BIND_ADDRESS
public static final ConfigOption<String> BIND_PORT
public static final ConfigOption<Integer> PORT
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.