use of org.apache.ignite.internal.IgniteFeatures.CHECK_INDEX_INLINE_SIZES in project gridgain by gridgain.
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());
Set<GridClientNode> supportedServerNodes = serverNodes.stream().filter(n -> n.supports(CHECK_INDEX_INLINE_SIZES)).collect(toSet());
Collection<UUID> serverNodeIds = F.transform(serverNodes, GridClientNode::nodeId);
Collection<UUID> supportedServerNodeIds = F.transform(supportedServerNodes, GridClientNode::nodeId);
CheckIndexInlineSizesResult res = client.compute().projection(supportedServerNodes).execute(CheckIndexInlineSizesTask.class.getName(), new VisorTaskArgument<>(supportedServerNodeIds, false));
Set<UUID> unsupportedNodes = serverNodeIds.stream().filter(n -> !supportedServerNodeIds.contains(n)).collect(toSet());
analyzeResults(log, unsupportedNodes, res);
}
return null;
}
Aggregations