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
ASessionManageronly has one session at most. It uses the less resources and also provides special handler for the REMOVE JAR syntax.The special
SessionManageris 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseSession(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()
-
-
-
Method Detail
-
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
-
-