Class 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 Detail

      • SingleSessionManager

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

      • 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