Search in sources :

Example 1 with GridQueryKillResponse

use of org.apache.ignite.internal.processors.query.messages.GridQueryKillResponse in project ignite by apache.

the class CommandProcessor method onMessage.

/**
 * @param nodeId Node ID.
 * @param msg Message.
 */
public void onMessage(UUID nodeId, Object msg) {
    assert msg != null;
    ClusterNode node = ctx.discovery().node(nodeId);
    if (node == null)
        // Node left, ignore.
        return;
    boolean processed = true;
    if (msg instanceof GridQueryKillRequest)
        onQueryKillRequest((GridQueryKillRequest) msg, node);
    if (msg instanceof GridQueryKillResponse)
        onQueryKillResponse((GridQueryKillResponse) msg);
    else
        processed = false;
    if (processed && log.isDebugEnabled())
        log.debug("Processed response: " + nodeId + "->" + ctx.localNodeId() + " " + msg);
}
Also used : ClusterNode(org.apache.ignite.cluster.ClusterNode) GridQueryKillRequest(org.apache.ignite.internal.processors.query.messages.GridQueryKillRequest) GridQueryKillResponse(org.apache.ignite.internal.processors.query.messages.GridQueryKillResponse)

Aggregations

ClusterNode (org.apache.ignite.cluster.ClusterNode)1 GridQueryKillRequest (org.apache.ignite.internal.processors.query.messages.GridQueryKillRequest)1 GridQueryKillResponse (org.apache.ignite.internal.processors.query.messages.GridQueryKillResponse)1