Search in sources :

Example 1 with QueryStartResponse

use of org.apache.ignite.internal.sql.engine.message.QueryStartResponse in project ignite-3 by apache.

the class ExecutionServiceImpl method start.

/**
 * {@inheritDoc}
 */
@Override
public void start() {
    iteratorsHolder.start();
    topSrvc.addEventHandler(new NodeLeaveHandler(this::onNodeLeft));
    msgSrvc.register((n, m) -> onMessage(n, (QueryStartRequest) m), SqlQueryMessageGroup.QUERY_START_REQUEST);
    msgSrvc.register((n, m) -> onMessage(n, (QueryStartResponse) m), SqlQueryMessageGroup.QUERY_START_RESPONSE);
    msgSrvc.register((n, m) -> onMessage(n, (ErrorMessage) m), SqlQueryMessageGroup.ERROR_MESSAGE);
}
Also used : QueryStartResponse(org.apache.ignite.internal.sql.engine.message.QueryStartResponse) QueryStartRequest(org.apache.ignite.internal.sql.engine.message.QueryStartRequest) ErrorMessage(org.apache.ignite.internal.sql.engine.message.ErrorMessage) NodeLeaveHandler(org.apache.ignite.internal.sql.engine.util.NodeLeaveHandler)

Aggregations

ErrorMessage (org.apache.ignite.internal.sql.engine.message.ErrorMessage)1 QueryStartRequest (org.apache.ignite.internal.sql.engine.message.QueryStartRequest)1 QueryStartResponse (org.apache.ignite.internal.sql.engine.message.QueryStartResponse)1 NodeLeaveHandler (org.apache.ignite.internal.sql.engine.util.NodeLeaveHandler)1