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

    Fields
    Modifier and Type
    Field
    Description
    final org.apache.flink.table.gateway.api.SqlGatewayService
     

    Fields inherited from class org.apache.flink.runtime.rest.RestServerEndpoint

    log, responseHeaders, uploadDir
  • Constructor Summary

    Constructors
    Constructor
    Description
    SqlGatewayRestEndpoint(org.apache.flink.configuration.Configuration configuration, org.apache.flink.table.gateway.api.SqlGatewayService sqlGatewayService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
     
    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>>
     
    protected void
     
    void
     

    Methods inherited from class org.apache.flink.runtime.rest.RestServerEndpoint

    closeAsync, getRestBaseUrl, getRestPort, getServerAddress, shutDownInternal, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.flink.util.AutoCloseableAsync

    close

    Methods 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:
      IOException
      org.apache.flink.util.ConfigurationException
  • Method Details

    • 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:
      initializeHandlers in class org.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:
      startInternal in class org.apache.flink.runtime.rest.RestServerEndpoint
    • stop

      public void stop() throws Exception
      Specified by:
      stop in interface org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpoint
      Throws:
      Exception