Examples of detailed()


Examples of org.apache.hadoop.ipc.metrics.RpcInstrumentation.detailed()

    // Number 4 includes getProtocolVersion()
    assertCounter("RpcProcessingTime_num_ops", 4L, rb);
    assertCounterGt("SentBytes", 0L, rb);
    assertCounterGt("ReceivedBytes", 0L, rb);

    MetricsSource detailed = rpcMetrics.detailed();
    rb = getMetrics(detailed);
    assertCounter("getProtocolVersion_num_ops", 1L, rb);
    // Number of calls to ping method should be 1
    assertCounter("ping_num_ops", 1L, rb);
    // Number of calls to echo method should be 2
View Full Code Here

Examples of org.apache.hadoop.ipc.metrics.RpcInstrumentation.detailed()

    // Number 4 includes getProtocolVersion()
    assertCounter("RpcProcessingTime_num_ops", 4L, rb);
    assertCounterGt("SentBytes", 0L, rb);
    assertCounterGt("ReceivedBytes", 0L, rb);

    MetricsSource detailed = rpcMetrics.detailed();
    rb = getMetrics(detailed);
    assertCounter("getProtocolVersion_num_ops", 1L, rb);
    // Number of calls to ping method should be 1
    assertCounter("ping_num_ops", 1L, rb);
    // Number of calls to echo method should be 2
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.recovery.RecoveryRequest.detailed()

    }

    @Override
    public void doRequest(final RestRequest request, final RestChannel channel, final Client client) {
        final RecoveryRequest recoveryRequest = new RecoveryRequest(Strings.splitStringByCommaToArray(request.param("index")));
        recoveryRequest.detailed(request.paramAsBoolean("detailed", false));
        recoveryRequest.activeOnly(request.paramAsBoolean("active_only", false));
        recoveryRequest.listenerThreaded(false);
        recoveryRequest.indicesOptions(IndicesOptions.fromRequest(request, recoveryRequest.indicesOptions()));

        client.admin().indices().recoveries(recoveryRequest, new RestResponseListener<RecoveryResponse>(channel) {
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.recovery.RecoveryRequest.detailed()

    @Override
    public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) {

        final RecoveryRequest recoveryRequest = new RecoveryRequest(Strings.splitStringByCommaToArray(request.param("index")));
        recoveryRequest.detailed(request.paramAsBoolean("detailed", false));
        recoveryRequest.activeOnly(request.paramAsBoolean("active_only", false));
        recoveryRequest.listenerThreaded(false);
        recoveryRequest.indicesOptions(IndicesOptions.fromRequest(request, recoveryRequest.indicesOptions()));

        client.admin().indices().recoveries(recoveryRequest, new RestBuilderListener<RecoveryResponse>(channel) {
View Full Code Here

Examples of org.elasticsearch.action.admin.indices.recovery.RecoveryRequest.detailed()

        recoveryRequest.indicesOptions(IndicesOptions.fromRequest(request, recoveryRequest.indicesOptions()));

        client.admin().indices().recoveries(recoveryRequest, new RestBuilderListener<RecoveryResponse>(channel) {
            @Override
            public RestResponse buildResponse(RecoveryResponse response, XContentBuilder builder) throws Exception {
                response.detailed(recoveryRequest.detailed());
                builder.startObject();
                response.toXContent(builder, request);
                builder.endObject();
                return new BytesRestResponse(OK, builder);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.