Search in sources :

Example 1 with ServerLoadDataInfileHandler

use of com.actiontech.dble.server.handler.ServerLoadDataInfileHandler in project dble by actiontech.

the class ServerConnectionFactory method getConnection.

@Override
protected FrontendConnection getConnection(NetworkChannel channel) throws IOException {
    ServerConnection c = new ServerConnection(channel);
    c.setSocketParams(true);
    c.setPrivileges(ServerPrivileges.instance());
    c.setQueryHandler(new ServerQueryHandler(c));
    c.setLoadDataInfileHandler(new ServerLoadDataInfileHandler(c));
    c.setPrepareHandler(new ServerPrepareHandler(c));
    SystemConfig sys = DbleServer.getInstance().getConfig().getSystem();
    c.setTxIsolation(sys.getTxIsolation());
    c.setSession2(new NonBlockingSession(c));
    return c;
}
Also used : SystemConfig(com.actiontech.dble.config.model.SystemConfig) ServerLoadDataInfileHandler(com.actiontech.dble.server.handler.ServerLoadDataInfileHandler) ServerPrepareHandler(com.actiontech.dble.server.handler.ServerPrepareHandler)

Aggregations

SystemConfig (com.actiontech.dble.config.model.SystemConfig)1 ServerLoadDataInfileHandler (com.actiontech.dble.server.handler.ServerLoadDataInfileHandler)1 ServerPrepareHandler (com.actiontech.dble.server.handler.ServerPrepareHandler)1