Class SingleSessionManager

java.lang.Object
org.apache.flink.table.client.gateway.SingleSessionManager
All Implemented Interfaces:
org.apache.flink.table.gateway.service.session.SessionManager

public class SingleSessionManager extends Object implements org.apache.flink.table.gateway.service.session.SessionManager
A SessionManager only has one session at most. It uses the less resources and also provides special handler for the REMOVE JAR syntax.

The special SessionManager is used in the Sql Client embedded mode and doesn't support concurrently modification.

  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleSessionManager(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closeSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
     
    org.apache.flink.table.gateway.service.session.Session
    getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
     
    org.apache.flink.table.gateway.service.session.Session
    openSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment)
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SingleSessionManager

      public SingleSessionManager(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.apache.flink.table.gateway.service.session.SessionManager
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.flink.table.gateway.service.session.SessionManager
    • getSession

      public org.apache.flink.table.gateway.service.session.Session getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
      Specified by:
      getSession in interface org.apache.flink.table.gateway.service.session.SessionManager
      Throws:
      org.apache.flink.table.gateway.api.utils.SqlGatewayException
    • openSession

      public org.apache.flink.table.gateway.service.session.Session openSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
      Specified by:
      openSession in interface org.apache.flink.table.gateway.service.session.SessionManager
      Throws:
      org.apache.flink.table.gateway.api.utils.SqlGatewayException
    • closeSession

      public void closeSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
      Specified by:
      closeSession in interface org.apache.flink.table.gateway.service.session.SessionManager
      Throws:
      org.apache.flink.table.gateway.api.utils.SqlGatewayException