use of org.apache.ignite.internal.processors.cache.verify.ContentionInfo 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;
}
use of org.apache.ignite.internal.processors.cache.verify.ContentionInfo in project ignite by apache.
the class VisorContentionJobResult method readExternalData.
/**
* {@inheritDoc}
*/
@Override
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
Object node = in.readObject();
List<String> entries = U.readList(in);
info = new ContentionInfo();
info.setNode((ClusterNode) node);
info.setEntries(entries);
}
Aggregations