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.SqlGatewayEndpoint
The rest endpoint for sql gateway.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.runtime.rest.RestServerEndpoint
org.apache.flink.runtime.rest.RestServerEndpoint.RestHandlerUrlComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.apache.flink.table.gateway.api.SqlGatewayServiceFields inherited from class org.apache.flink.runtime.rest.RestServerEndpoint
log, responseHeaders, uploadDir -
Constructor Summary
ConstructorsConstructorDescriptionSqlGatewayRestEndpoint(org.apache.flink.configuration.Configuration configuration, org.apache.flink.table.gateway.api.SqlGatewayService sqlGatewayService) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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 voidvoidstop()Methods inherited from class org.apache.flink.runtime.rest.RestServerEndpoint
closeAsync, getRestBaseUrl, getRestPort, getServerAddress, shutDownInternal, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.AutoCloseableAsync
closeMethods inherited from interface org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpoint
start
-
Field Details
-
service
public final org.apache.flink.table.gateway.api.SqlGatewayService service
-
-
Constructor Details
-
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 Details
-
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
-
stop
- Specified by:
stopin interfaceorg.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpoint- Throws:
Exception
-