public abstract class ClientListenerAbstractConnectionContext extends Object implements ClientListenerConnectionContext
| Modifier and Type | Field and Description |
|---|---|
protected GridKernalContext |
ctx
Kernal context.
|
protected GridNioSession |
ses
Nio session.
|
protected Map<String,String> |
userAttrs
User attributes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ClientListenerAbstractConnectionContext(GridKernalContext ctx,
GridNioSession ses,
long connId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticate(GridNioSession ses,
String user,
String pwd)
Perform authentication.
|
String |
clientDescriptor()
Describes the client connection:
- thin cli: "cli:host:port@user_name"
- thin JDBC: "jdbc-thin:host:port@user_name"
- ODBC: "odbc:host:port@user_name"
Used by the running query view to display query initiator.
|
long |
connectionId() |
protected void |
initClientDescriptor(String prefix) |
GridKernalContext |
kernalContext() |
void |
onDisconnected()
Called whenever client is disconnected due to correct connection close
or due to
IOException during network operations. |
@Nullable SecurityContext |
securityContext() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclientType, defaultVersion, handler, initializeFromHandshake, isVersionSupported, parserprotected final GridKernalContext ctx
protected final GridNioSession ses
protected ClientListenerAbstractConnectionContext(GridKernalContext ctx, GridNioSession ses, long connId)
ctx - Kernal context.ses - Client's NIO session.connId - Connection ID.public GridKernalContext kernalContext()
@Nullable public @Nullable SecurityContext securityContext()
securityContext in interface ClientListenerConnectionContextpublic long connectionId()
connectionId in interface ClientListenerConnectionContextprotected void authenticate(GridNioSession ses, String user, String pwd) throws IgniteCheckedException
IgniteCheckedException - If failed.public void onDisconnected()
IOException during network operations.onDisconnected in interface ClientListenerConnectionContextprotected void initClientDescriptor(String prefix)
public String clientDescriptor()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023