You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Status

Current state"Under Discussion"

Discussion thread: here 

JIRA: KAFKA-6986 

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

By adding metrics(), now any client can get the metrics from AdminClient, this is a should-have function since all the other clients has it.

Public Interfaces

/**
 * Get the metrics kept by the adminClient
 *
 * @return
 */
public abstract Map<MetricName, ? extends Metric> metrics();

Proposed Changes

@Override
public Map<MetricName, ? extends Metric> metrics() {
    return Collections.unmodifiableMap(this.metrics.metrics());
}


Compatibility, Deprecation, and Migration Plan

  • No known compatibility issues.

Rejected Alternatives


  • No labels