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
ConstructorsConstructorDescriptionSingleSessionManager(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) org.apache.flink.table.gateway.service.session.SessiongetSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) org.apache.flink.table.gateway.service.session.SessionopenSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment) voidstart()voidstop()
-
Constructor Details
-
SingleSessionManager
public SingleSessionManager(org.apache.flink.table.gateway.service.context.DefaultContext defaultContext)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.apache.flink.table.gateway.service.session.SessionManager
-
stop
public void stop()- Specified by:
stopin interfaceorg.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:
getSessionin interfaceorg.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:
openSessionin interfaceorg.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:
closeSessionin interfaceorg.apache.flink.table.gateway.service.session.SessionManager- Throws:
org.apache.flink.table.gateway.api.utils.SqlGatewayException
-