Interface DatabaseProtocolFrontendEngine
- All Superinterfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
public interface DatabaseProtocolFrontendEngine
extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
Database protocol frontend engine.
-
Method Summary
Modifier and TypeMethodDescriptionGet authentication engine.Get database packet codec engine.Get command execute engine.Get frontend context.voidhandleException(ConnectionSession connectionSession, Exception exception) Handle exception.default voidinitChannel(io.netty.channel.Channel channel) Initialize channel.voidrelease(ConnectionSession connectionSession) Release resource.default voidsetDatabaseVersion(String databaseName, String databaseVersion) Set database version.Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
getType, getTypeAliases, init, isDefault
-
Method Details
-
initChannel
default void initChannel(io.netty.channel.Channel channel) Initialize channel.- Parameters:
channel- channel
-
setDatabaseVersion
Set database version.- Parameters:
databaseName- database namedatabaseVersion- database version
-
getFrontendContext
FrontendContext getFrontendContext()Get frontend context.- Returns:
- frontend context
-
getCodecEngine
DatabasePacketCodecEngine<?> getCodecEngine()Get database packet codec engine.- Returns:
- database packet codec engine
-
getAuthenticationEngine
AuthenticationEngine getAuthenticationEngine()Get authentication engine.- Returns:
- authentication engine
-
getCommandExecuteEngine
CommandExecuteEngine getCommandExecuteEngine()Get command execute engine.- Returns:
- command execute engine
-
release
Release resource.- Parameters:
connectionSession- connection session
-
handleException
Handle exception.- Parameters:
connectionSession- connection sessionexception- exception
-