Search in sources :

Example 1 with CheckIndexInlineSizesResult

use of org.apache.ignite.internal.commandline.cache.check_indexes_inline_size.CheckIndexInlineSizesResult in project ignite by apache.

the class CheckIndexInlineSizes method execute.

/**
 * {@inheritDoc}
 */
@Override
public Object execute(GridClientConfiguration clientCfg, Logger log) throws Exception {
    try (GridClient client = Command.startClient(clientCfg)) {
        Set<GridClientNode> serverNodes = client.compute().nodes().stream().filter(SRV_NODES).collect(toSet());
        Collection<UUID> serverNodeIds = F.transform(serverNodes, GridClientNode::nodeId);
        CheckIndexInlineSizesResult res = client.compute().projection(serverNodes).execute(CheckIndexInlineSizesTask.class.getName(), new VisorTaskArgument<>(serverNodeIds, false));
        analyzeResults(log, res);
    }
    return null;
}
Also used : GridClientNode(org.apache.ignite.internal.client.GridClientNode) CheckIndexInlineSizesTask(org.apache.ignite.internal.commandline.cache.check_indexes_inline_size.CheckIndexInlineSizesTask) CheckIndexInlineSizesResult(org.apache.ignite.internal.commandline.cache.check_indexes_inline_size.CheckIndexInlineSizesResult) GridClient(org.apache.ignite.internal.client.GridClient) UUID(java.util.UUID)

Aggregations

UUID (java.util.UUID)1 GridClient (org.apache.ignite.internal.client.GridClient)1 GridClientNode (org.apache.ignite.internal.client.GridClientNode)1 CheckIndexInlineSizesResult (org.apache.ignite.internal.commandline.cache.check_indexes_inline_size.CheckIndexInlineSizesResult)1 CheckIndexInlineSizesTask (org.apache.ignite.internal.commandline.cache.check_indexes_inline_size.CheckIndexInlineSizesTask)1