public class SessionManagerImpl extends Object implements SessionManager
SessionManager that manage the lifecycle of the Session.| Constructor and Description |
|---|
SessionManagerImpl(DefaultContext defaultContext) |
| 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.
|
int |
currentSessionCount() |
int |
getOperationCount(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) |
Session |
getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
Get the
Session with the identifier. |
boolean |
isSessionAlive(org.apache.flink.table.gateway.api.session.SessionHandle sessionId) |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic SessionManagerImpl(DefaultContext defaultContext)
public void start()
SessionManagerSessionManager and do the required initialization.start in interface SessionManagerpublic void stop()
SessionManagerSessionManager and releases used resources.stop in interface SessionManagerpublic Session getSession(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
SessionManagerSession with the identifier.getSession in interface SessionManagersessionHandle - identifier of the session.org.apache.flink.table.gateway.api.utils.SqlGatewayExceptionpublic Session openSession(org.apache.flink.table.gateway.api.session.SessionEnvironment environment) throws org.apache.flink.table.gateway.api.utils.SqlGatewayException
SessionManagerSession.openSession in interface SessionManagerenvironment - the initialization environment.org.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
SessionManagercloseSession in interface SessionManagersessionHandle - the identifier of the session.org.apache.flink.table.gateway.api.utils.SqlGatewayException@VisibleForTesting public boolean isSessionAlive(org.apache.flink.table.gateway.api.session.SessionHandle sessionId)
@VisibleForTesting public int currentSessionCount()
@VisibleForTesting public int getOperationCount(org.apache.flink.table.gateway.api.session.SessionHandle sessionHandle)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.