public class SingleSessionManager extends Object implements org.apache.flink.table.gateway.service.session.SessionManager
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 and Description |
|---|
SingleSessionManager(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext) |
| Modifier and Type | Method and 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 |
start() |
void |
stop() |
public SingleSessionManager(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext)
public void start()
start in interface org.apache.flink.table.gateway.service.session.SessionManagerpublic void stop()
stop in interface org.apache.flink.table.gateway.service.session.SessionManagerpublic 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
getSession in interface org.apache.flink.table.gateway.service.session.SessionManagerorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic 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
openSession in interface org.apache.flink.table.gateway.service.session.SessionManagerorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic void closeSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
closeSession in interface org.apache.flink.table.gateway.service.session.SessionManagerorg.apache.flink.table.gateway.api.utils.SqlGatewayExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.