Package org.elasticsearch.metrics.MetricsElasticsearchModule

Examples of org.elasticsearch.metrics.MetricsElasticsearchModule.BulkIndexOperationHeader


    /**
     * serialize a JSON metric over the outputstream in a bulk request
     */
    private void writeJsonMetric(JsonMetric jsonMetric, ObjectWriter writer, OutputStream out) throws IOException {
        writer.writeValue(out, new BulkIndexOperationHeader(currentIndexName, jsonMetric.type()));
        out.write("\n".getBytes());
        writer.writeValue(out, jsonMetric);
        out.write("\n".getBytes());

        out.flush();
View Full Code Here

TOP

Related Classes of org.elasticsearch.metrics.MetricsElasticsearchModule.BulkIndexOperationHeader

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.