Package org.leskes.elasticfacets.cache

Examples of org.leskes.elasticfacets.cache.CacheStatsPerFieldResponse


        client.admin().indices().prepareClearCache().execute().get();
    }

    @Test
    public void TestEmpty() throws ExecutionException, InterruptedException {
        CacheStatsPerFieldResponse r = client.admin().cluster()
                .execute(CacheStatsPerFieldAction.INSTANCE, new CacheStatsPerFieldRequest())
                .get();

        for (CacheStatsPerFieldStats s : r) {
            assertThat(s.fieldEntries().size(), equalTo(0));
View Full Code Here


        for (int i = 0; i < numberOfRuns(); i++) {
            clearCache();
            facetOnTags();


            CacheStatsPerFieldResponse r = client.admin().cluster()
                    .execute(CacheStatsPerFieldAction.INSTANCE, new CacheStatsPerFieldRequest())
                    .get();

            for (CacheStatsPerFieldStats s : r) {
                assertThat(s.fieldEntries().size(), equalTo(1));
View Full Code Here

    @Test
    public void TestJSONResponse() throws Exception {

        facetOnTags();

        CacheStatsPerFieldResponse r = client.admin().cluster()
                .execute(CacheStatsPerFieldAction.INSTANCE, new CacheStatsPerFieldRequest())
                .get();

        XContentBuilder builder = jsonBuilder();
        builder.startObject();
        r.toXContent(builder, ToXContent.EMPTY_PARAMS);
        builder.endObject();
        builder.close();

        String JSON = builder.bytes().toUtf8();
        logger.info("JSON: {}",JSON);
View Full Code Here

TOP

Related Classes of org.leskes.elasticfacets.cache.CacheStatsPerFieldResponse

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.