use of org.apache.ignite.internal.visor.verify.VisorContentionTaskResult in project ignite by apache.
the class CacheContention method execute.
/**
* {@inheritDoc}
*/
@Override
public Object execute(GridClientConfiguration clientCfg, Logger logger) throws Exception {
VisorContentionTaskArg taskArg = new VisorContentionTaskArg(args.minQueueSize(), args.maxPrint());
UUID nodeId = args.nodeId() == null ? BROADCAST_UUID : args.nodeId();
VisorContentionTaskResult res;
try (GridClient client = Command.startClient(clientCfg)) {
res = executeTaskByNameOnNode(client, VisorContentionTask.class.getName(), taskArg, nodeId, clientCfg);
}
CommandLogger.printErrors(res.exceptions(), "Contention check failed on nodes:", logger);
for (ContentionInfo info : res.getInfos()) info.print();
return res;
}
Aggregations