Search in sources :

Example 1 with IndexListTaskArg

use of org.apache.ignite.internal.visor.cache.index.IndexListTaskArg in project ignite by apache.

the class CacheIndexesList method execute.

/**
 * {@inheritDoc}
 */
@Override
public Object execute(GridClientConfiguration clientCfg, Logger logger) throws Exception {
    Set<IndexListInfoContainer> taskRes;
    final UUID nodeId = args.nodeId;
    IndexListTaskArg taskArg = new IndexListTaskArg(args.groupsRegEx, args.cachesRegEx, args.indexesRegEx);
    try (GridClient client = Command.startClient(clientCfg)) {
        taskRes = TaskExecutor.executeTaskByNameOnNode(client, "org.apache.ignite.internal.visor.cache.index.IndexListTask", taskArg, nodeId, clientCfg);
    }
    printIndexes(taskRes, logger);
    return taskRes;
}
Also used : GridClient(org.apache.ignite.internal.client.GridClient) UUID(java.util.UUID) IndexListTaskArg(org.apache.ignite.internal.visor.cache.index.IndexListTaskArg) IndexListInfoContainer(org.apache.ignite.internal.visor.cache.index.IndexListInfoContainer)

Aggregations

UUID (java.util.UUID)1 GridClient (org.apache.ignite.internal.client.GridClient)1 IndexListInfoContainer (org.apache.ignite.internal.visor.cache.index.IndexListInfoContainer)1 IndexListTaskArg (org.apache.ignite.internal.visor.cache.index.IndexListTaskArg)1