Package org.elasticsearch.action.admin.indices.stats

Examples of org.elasticsearch.action.admin.indices.stats.CommonStatsFlags


        return this.indicesLifecycle;
    }

    @Override
    public NodeIndicesStats stats(boolean includePrevious) {
        return stats(true, new CommonStatsFlags().all());
    }
View Full Code Here


        List<StatsResult> stats = Lists.newArrayList();
        stats.add(measureAgg("hist_l", "l_value", MATCH_PERCENTAGE));

        NodesStatsResponse nodeStats = client.admin().cluster().prepareNodesStats(nodes[0].settings().get("name")).clear()
                .setIndices(new CommonStatsFlags(CommonStatsFlags.Flag.FieldData)).get();


        System.out.println("------------------ SUMMARY -------------------------------");

        System.out.println("docs: " + COUNT);
View Full Code Here

            if (metrics.contains("indices")) {
                Set<String> indexMetrics = Strings.splitStringByCommaToSet(request.param("indexMetric", "_all"));
                if (indexMetrics.size() == 1 && indexMetrics.contains("_all")) {
                    nodesStatsRequest.indices(CommonStatsFlags.ALL);
                } else {
                    CommonStatsFlags flags = new CommonStatsFlags();
                    for (Flag flag : CommonStatsFlags.Flag.values()) {
                        flags.set(flag, indexMetrics.contains(flag.getRestName()));
                    }
                    nodesStatsRequest.indices(flags);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.elasticsearch.action.admin.indices.stats.CommonStatsFlags

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.