Search in sources :

Example 1 with VisorIdleVerifyTaskResult

use of org.apache.ignite.internal.visor.verify.VisorIdleVerifyTaskResult in project ignite by apache.

the class IdleVerify method legacyCacheIdleVerify.

/**
 * @param client Client.
 * @param clientCfg Client configuration.
 */
private void legacyCacheIdleVerify(GridClient client, GridClientConfiguration clientCfg, Logger logger) throws GridClientException {
    VisorIdleVerifyTaskResult res = executeTask(client, VisorIdleVerifyTask.class, new VisorIdleVerifyTaskArg(args.caches(), args.excludeCaches(), args.isSkipZeros(), args.getCacheFilterEnum(), args.idleCheckCrc()), clientCfg);
    Map<PartitionKey, List<PartitionHashRecord>> conflicts = res.getConflicts();
    if (conflicts.isEmpty()) {
        logger.info("The check procedure has finished, no conflicts have been found.");
        logger.info("");
    } else {
        logger.info("The check procedure has finished, found " + conflicts.size() + " conflict partitions.");
        logger.info("");
        for (Map.Entry<PartitionKey, List<PartitionHashRecord>> entry : conflicts.entrySet()) {
            logger.info("Conflict partition: " + entry.getKey());
            logger.info("Partition instances: " + entry.getValue());
        }
    }
}
Also used : VisorIdleVerifyTaskResult(org.apache.ignite.internal.visor.verify.VisorIdleVerifyTaskResult) PartitionKey(org.apache.ignite.internal.processors.cache.verify.PartitionKey) VisorIdleVerifyTaskArg(org.apache.ignite.internal.visor.verify.VisorIdleVerifyTaskArg) List(java.util.List) Map(java.util.Map)

Aggregations

List (java.util.List)1 Map (java.util.Map)1 PartitionKey (org.apache.ignite.internal.processors.cache.verify.PartitionKey)1 VisorIdleVerifyTaskArg (org.apache.ignite.internal.visor.verify.VisorIdleVerifyTaskArg)1 VisorIdleVerifyTaskResult (org.apache.ignite.internal.visor.verify.VisorIdleVerifyTaskResult)1