@Internal public static class SqlGatewayEndpointFactoryUtils.DefaultEndpointFactoryContext extends Object implements SqlGatewayEndpointFactory.Context
SqlGatewayEndpointFactory
.Constructor and Description |
---|
DefaultEndpointFactoryContext(SqlGatewayService service,
Configuration flinkConfiguration,
Map<String,String> endpointConfig) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getEndpointOptions()
Returns the options with which the endpoint is created.
|
ReadableConfig |
getFlinkConfiguration()
Gives read-only access to the configuration of the current session.
|
SqlGatewayService |
getSqlGatewayService()
Get the service to execute the request.
|
public DefaultEndpointFactoryContext(SqlGatewayService service, Configuration flinkConfiguration, Map<String,String> endpointConfig)
public SqlGatewayService getSqlGatewayService()
SqlGatewayEndpointFactory.Context
getSqlGatewayService
in interface SqlGatewayEndpointFactory.Context
public ReadableConfig getFlinkConfiguration()
SqlGatewayEndpointFactory.Context
getFlinkConfiguration
in interface SqlGatewayEndpointFactory.Context
public Map<String,String> getEndpointOptions()
SqlGatewayEndpointFactory.Context
All the keys in the endpoint options are pruned with the prefix. For example, the
option sql-gateway.endpoint.rest.host
's key is host
in the map.
An implementation should perform validation of these options.
getEndpointOptions
in interface SqlGatewayEndpointFactory.Context
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.