Class MySQLCommandExecuteEngine
- java.lang.Object
-
- org.apache.shardingsphere.proxy.frontend.mysql.command.MySQLCommandExecuteEngine
-
- All Implemented Interfaces:
CommandExecuteEngine
public final class MySQLCommandExecuteEngine extends Object implements CommandExecuteEngine
Command execute engine for MySQL.
-
-
Constructor Summary
Constructors Constructor Description MySQLCommandExecuteEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandExecutorgetCommandExecutor(org.apache.shardingsphere.db.protocol.packet.command.CommandPacketType type, org.apache.shardingsphere.db.protocol.packet.command.CommandPacket packet, ConnectionSession connectionSession)MySQLCommandPacketgetCommandPacket(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload, org.apache.shardingsphere.db.protocol.packet.command.CommandPacketType type, ConnectionSession connectionSession)MySQLCommandPacketTypegetCommandPacketType(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload)MySQLPacketgetErrorPacket(Exception cause)voidwriteQueryData(io.netty.channel.ChannelHandlerContext context, ProxyDatabaseConnectionManager databaseConnectionManager, QueryCommandExecutor queryCommandExecutor, int headerPackagesCount)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.shardingsphere.proxy.frontend.command.CommandExecuteEngine
getOtherPacket
-
-
-
-
Method Detail
-
getCommandPacketType
public MySQLCommandPacketType getCommandPacketType(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload)
- Specified by:
getCommandPacketTypein interfaceCommandExecuteEngine
-
getCommandPacket
public MySQLCommandPacket getCommandPacket(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload, org.apache.shardingsphere.db.protocol.packet.command.CommandPacketType type, ConnectionSession connectionSession)
- Specified by:
getCommandPacketin interfaceCommandExecuteEngine
-
getCommandExecutor
public CommandExecutor getCommandExecutor(org.apache.shardingsphere.db.protocol.packet.command.CommandPacketType type, org.apache.shardingsphere.db.protocol.packet.command.CommandPacket packet, ConnectionSession connectionSession) throws SQLException
- Specified by:
getCommandExecutorin interfaceCommandExecuteEngine- Throws:
SQLException
-
getErrorPacket
public MySQLPacket getErrorPacket(Exception cause)
- Specified by:
getErrorPacketin interfaceCommandExecuteEngine
-
writeQueryData
public void writeQueryData(io.netty.channel.ChannelHandlerContext context, ProxyDatabaseConnectionManager databaseConnectionManager, QueryCommandExecutor queryCommandExecutor, int headerPackagesCount) throws SQLException- Specified by:
writeQueryDatain interfaceCommandExecuteEngine- Throws:
SQLException
-
-