public interface SessionManager
Session.| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
Close the session with the specified identifier and releases the resources used by the
session.
|
static SessionManager |
create(DefaultContext defaultContext)
Create the
SessionManager with the default configuration. |
Session |
getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
Get the
Session with the identifier. |
Session |
openSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment)
Register a new
Session. |
void |
start()
Start the
SessionManager and do the required initialization. |
void |
stop()
Destroy the
SessionManager and releases used resources. |
static SessionManager create(DefaultContext defaultContext)
SessionManager with the default configuration.void start()
SessionManager and do the required initialization.void stop()
SessionManager and releases used resources.Session getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
Session with the identifier.sessionHandle - identifier of the session.org.apache.flink.table.gateway.api.utils.SqlGatewayExceptionSession openSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
Session.environment - the initialization environment.org.apache.flink.table.gateway.api.utils.SqlGatewayExceptionvoid closeSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
sessionHandle - the identifier of the session.org.apache.flink.table.gateway.api.utils.SqlGatewayExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.