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 Details

    • initChannel

      default void initChannel(io.netty.channel.Channel channel)
      Initialize channel.
      Parameters:
      channel - channel
    • setDatabaseVersion

      default void setDatabaseVersion(String databaseName, String databaseVersion)
      Set database version.
      Parameters:
      databaseName - database name
      databaseVersion - 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

      void release(ConnectionSession connectionSession)
      Release resource.
      Parameters:
      connectionSession - connection session
    • handleException

      void handleException(ConnectionSession connectionSession, Exception exception)
      Handle exception.
      Parameters:
      connectionSession - connection session
      exception - exception