public class SqlGatewayRestEndpoint extends RestServerEndpoint implements SqlGatewayEndpoint
RestServerEndpoint.RestHandlerUrlComparator
Modifier and Type | Field and Description |
---|---|
SqlGatewayService |
service |
log, responseHeaders, uploadDir
Constructor and Description |
---|
SqlGatewayRestEndpoint(Configuration configuration,
SqlGatewayService sqlGatewayService) |
Modifier and Type | Method and Description |
---|---|
protected void |
addOperationRelatedHandlers(List<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers) |
protected void |
addUtilRelatedHandlers(List<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers) |
protected List<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> |
initializeHandlers(CompletableFuture<String> localAddressFuture)
This method is called at the beginning of
RestServerEndpoint.start() to setup all handlers that the
REST server endpoint implementation requires. |
protected void |
startInternal()
Hook to start sub class specific services.
|
void |
stop()
Terminate the endpoint.
|
closeAsync, getRestBaseUrl, getRestPort, getServerAddress, shutDownInternal, start
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start
close
public final SqlGatewayService service
public SqlGatewayRestEndpoint(Configuration configuration, SqlGatewayService sqlGatewayService) throws IOException, ConfigurationException
IOException
ConfigurationException
protected List<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> initializeHandlers(CompletableFuture<String> localAddressFuture)
RestServerEndpoint
RestServerEndpoint.start()
to setup all handlers that the
REST server endpoint implementation requires.initializeHandlers
in class RestServerEndpoint
localAddressFuture
- future rest address of the RestServerEndpointprotected void addOperationRelatedHandlers(List<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers)
protected void addUtilRelatedHandlers(List<Tuple2<RestHandlerSpecification,org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler>> handlers)
protected void startInternal()
RestServerEndpoint
startInternal
in class RestServerEndpoint
public void stop() throws Exception
SqlGatewayEndpoint
stop
in interface SqlGatewayEndpoint
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.