Class SqlGatewayRestEndpoint
- java.lang.Object
-
- org.apache.flink.runtime.rest.RestServerEndpoint
-
- org.apache.flink.table.gateway.rest.SqlGatewayRestEndpoint
-
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.runtime.rest.RestService,org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpoint,org.apache.flink.util.AutoCloseableAsync
public class SqlGatewayRestEndpoint extends org.apache.flink.runtime.rest.RestServerEndpoint implements org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpointThe rest endpoint for sql gateway.
-
-
Field Summary
Fields Modifier and Type Field Description org.apache.flink.table.gateway.api.SqlGatewayServiceservice
-
Constructor Summary
Constructors Constructor Description SqlGatewayRestEndpoint(org.apache.flink.configuration.Configuration configuration, org.apache.flink.table.gateway.api.SqlGatewayService sqlGatewayService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddOperationRelatedHandlers(List<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.runtime.rest.handler.RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers)protected voidaddUtilRelatedHandlers(List<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.runtime.rest.handler.RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers)EmbeddedQuartzSchedulergetQuartzScheduler()protected List<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.runtime.rest.handler.RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>>initializeHandlers(CompletableFuture<String> localAddressFuture)protected voidstartInternal()voidstop()-
Methods inherited from class org.apache.flink.runtime.rest.RestServerEndpoint
closeAsync, getRestBaseUrl, getRestPort, getServerAddress, shutDownInternal, start
-
-
-
-
Constructor Detail
-
SqlGatewayRestEndpoint
public SqlGatewayRestEndpoint(org.apache.flink.configuration.Configuration configuration, org.apache.flink.table.gateway.api.SqlGatewayService sqlGatewayService) throws IOException, org.apache.flink.util.ConfigurationException- Throws:
IOExceptionorg.apache.flink.util.ConfigurationException
-
-
Method Detail
-
getQuartzScheduler
@VisibleForTesting public EmbeddedQuartzScheduler getQuartzScheduler()
-
initializeHandlers
protected List<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.runtime.rest.handler.RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> initializeHandlers(CompletableFuture<String> localAddressFuture)
- Specified by:
initializeHandlersin classorg.apache.flink.runtime.rest.RestServerEndpoint
-
addOperationRelatedHandlers
protected void addOperationRelatedHandlers(List<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.runtime.rest.handler.RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers)
-
addUtilRelatedHandlers
protected void addUtilRelatedHandlers(List<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.runtime.rest.handler.RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers)
-
startInternal
protected void startInternal()
- Specified by:
startInternalin classorg.apache.flink.runtime.rest.RestServerEndpoint
-
-