Table of Contents

Class Metrics

Namespace
Org.Apache.Kafka.Common.Metrics
Assembly
MASES.KNet.dll
public class Metrics : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
Metrics
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()
JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])
JVMBridgeBase<AutoCloseable>.DynBridgeClazz
JVMBridgeBase<AutoCloseable>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener

Constructors

Metrics()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public Metrics()

Metrics(MetricConfig)

public Metrics(MetricConfig arg0)

Parameters

arg0 MetricConfig

MetricConfig

Metrics(MetricConfig, List<MetricsReporter>, Time)

public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2)

Parameters

arg0 MetricConfig

MetricConfig

arg1 List<MetricsReporter>

List

arg2 Time

Time

Metrics(MetricConfig, List<MetricsReporter>, Time, MetricsContext)

public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2, MetricsContext arg3)

Parameters

arg0 MetricConfig

MetricConfig

arg1 List<MetricsReporter>

List

arg2 Time

Time

arg3 MetricsContext

MetricsContext

Metrics(MetricConfig, List<MetricsReporter>, Time, bool)

public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2, bool arg3)

Parameters

arg0 MetricConfig

MetricConfig

arg1 List<MetricsReporter>

List

arg2 Time

Time

arg3 bool

bool

Metrics(MetricConfig, List<MetricsReporter>, Time, bool, MetricsContext)

public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2, bool arg3, MetricsContext arg4)

Parameters

arg0 MetricConfig

MetricConfig

arg1 List<MetricsReporter>

List

arg2 Time

Time

arg3 bool

bool

arg4 MetricsContext

MetricsContext

Metrics(MetricConfig, Time)

public Metrics(MetricConfig arg0, Time arg1)

Parameters

arg0 MetricConfig

MetricConfig

arg1 Time

Time

Metrics(Time)

public Metrics(Time arg0)

Parameters

arg0 Time

Time

Metrics(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public Metrics(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AddMetric(MetricName, Measurable)

public void AddMetric(MetricName arg0, Measurable arg1)

Parameters

arg0 MetricName

MetricName

arg1 Measurable

Measurable

AddMetric(MetricName, MetricConfig, Measurable)

public void AddMetric(MetricName arg0, MetricConfig arg1, Measurable arg2)

Parameters

arg0 MetricName

MetricName

arg1 MetricConfig

MetricConfig

arg2 Measurable

Measurable

AddMetric(MetricName, MetricConfig, MetricValueProvider<object>)

public void AddMetric(MetricName arg0, MetricConfig arg1, MetricValueProvider<object> arg2)

Parameters

arg0 MetricName

MetricName

arg1 MetricConfig

MetricConfig

arg2 MetricValueProvider<object>

MetricValueProvider

AddMetric(MetricName, MetricValueProvider<object>)

public void AddMetric(MetricName arg0, MetricValueProvider<object> arg1)

Parameters

arg0 MetricName

MetricName

arg1 MetricValueProvider<object>

MetricValueProvider

AddMetricIfAbsent(MetricName, MetricConfig, MetricValueProvider<object>)

public KafkaMetric AddMetricIfAbsent(MetricName arg0, MetricConfig arg1, MetricValueProvider<object> arg2)

Parameters

arg0 MetricName

MetricName

arg1 MetricConfig

MetricConfig

arg2 MetricValueProvider<object>

MetricValueProvider

Returns

KafkaMetric

KafkaMetric

AddReporter(MetricsReporter)

public void AddReporter(MetricsReporter arg0)

Parameters

arg0 MetricsReporter

MetricsReporter

Close()

public void Close()

Config()

public MetricConfig Config()

Returns

MetricConfig

MetricConfig

GetSensor(String)

public Sensor GetSensor(String arg0)

Parameters

arg0 String

String

Returns

Sensor

Sensor

Metric(MetricName)

public KafkaMetric Metric(MetricName arg0)

Parameters

arg0 MetricName

MetricName

Returns

KafkaMetric

KafkaMetric

MetricInstance(MetricNameTemplate, params String[])

public MetricName MetricInstance(MetricNameTemplate arg0, params String[] arg1)

Parameters

arg0 MetricNameTemplate

MetricNameTemplate

arg1 String[]

String

Returns

MetricName

MetricName

MetricInstance(MetricNameTemplate, Map<String, String>)

public MetricName MetricInstance(MetricNameTemplate arg0, Map<String, String> arg1)

Parameters

arg0 MetricNameTemplate

MetricNameTemplate

arg1 Map<String, String>

Map

Returns

MetricName

MetricName

MetricName(String, String)

public MetricName MetricName(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

MetricName

MetricName

MetricName(String, String, String)

public MetricName MetricName(String arg0, String arg1, String arg2)

Parameters

arg0 String

String

arg1 String

String

arg2 String

String

Returns

MetricName

MetricName

MetricName(String, String, String, params String[])

public MetricName MetricName(String arg0, String arg1, String arg2, params String[] arg3)

Parameters

arg0 String

String

arg1 String

String

arg2 String

String

arg3 String[]

String

Returns

MetricName

MetricName

MetricName(String, String, String, Map<String, String>)

public MetricName MetricName(String arg0, String arg1, String arg2, Map<String, String> arg3)

Parameters

arg0 String

String

arg1 String

String

arg2 String

String

arg3 Map<String, String>

Map

Returns

MetricName

MetricName

MetricName(String, String, Map<String, String>)

public MetricName MetricName(String arg0, String arg1, Map<String, String> arg2)

Parameters

arg0 String

String

arg1 String

String

arg2 Map<String, String>

Map

Returns

MetricName

MetricName

MetricsMethod()

public Map<MetricName, KafkaMetric> MetricsMethod()

Returns

Map<MetricName, KafkaMetric>

Map

RemoveMetric(MetricName)

public KafkaMetric RemoveMetric(MetricName arg0)

Parameters

arg0 MetricName

MetricName

Returns

KafkaMetric

KafkaMetric

RemoveReporter(MetricsReporter)

public void RemoveReporter(MetricsReporter arg0)

Parameters

arg0 MetricsReporter

MetricsReporter

RemoveSensor(String)

public void RemoveSensor(String arg0)

Parameters

arg0 String

String

Reporters()

public List<MetricsReporter> Reporters()

Returns

List<MetricsReporter>

List

Sensor(String)

public Sensor Sensor(String arg0)

Parameters

arg0 String

String

Returns

Sensor

Sensor

Sensor(String, MetricConfig, RecordingLevel, params Sensor[])

public Sensor Sensor(String arg0, MetricConfig arg1, Sensor.RecordingLevel arg2, params Sensor[] arg3)

Parameters

arg0 String

String

arg1 MetricConfig

MetricConfig

arg2 Sensor.RecordingLevel

Sensor.RecordingLevel

arg3 Sensor[]

Sensor

Returns

Sensor

Sensor

Sensor(String, MetricConfig, params Sensor[])

public Sensor Sensor(String arg0, MetricConfig arg1, params Sensor[] arg2)

Parameters

arg0 String

String

arg1 MetricConfig

MetricConfig

arg2 Sensor[]

Sensor

Returns

Sensor

Sensor

Sensor(String, MetricConfig, long, RecordingLevel, params Sensor[])

public Sensor Sensor(String arg0, MetricConfig arg1, long arg2, Sensor.RecordingLevel arg3, params Sensor[] arg4)

Parameters

arg0 String

String

arg1 MetricConfig

MetricConfig

arg2 long

long

arg3 Sensor.RecordingLevel

Sensor.RecordingLevel

arg4 Sensor[]

Sensor

Returns

Sensor

Sensor

Sensor(String, MetricConfig, long, params Sensor[])

public Sensor Sensor(String arg0, MetricConfig arg1, long arg2, params Sensor[] arg3)

Parameters

arg0 String

String

arg1 MetricConfig

MetricConfig

arg2 long

long

arg3 Sensor[]

Sensor

Returns

Sensor

Sensor

Sensor(String, RecordingLevel)

public Sensor Sensor(String arg0, Sensor.RecordingLevel arg1)

Parameters

arg0 String

String

arg1 Sensor.RecordingLevel

Sensor.RecordingLevel

Returns

Sensor

Sensor

Sensor(String, RecordingLevel, params Sensor[])

public Sensor Sensor(String arg0, Sensor.RecordingLevel arg1, params Sensor[] arg2)

Parameters

arg0 String

String

arg1 Sensor.RecordingLevel

Sensor.RecordingLevel

arg2 Sensor[]

Sensor

Returns

Sensor

Sensor

Sensor(String, params Sensor[])

public Sensor Sensor(String arg0, params Sensor[] arg1)

Parameters

arg0 String

String

arg1 Sensor[]

Sensor

Returns

Sensor

Sensor

ToHtmlTable(String, Iterable<MetricNameTemplate>)

public static String ToHtmlTable(String arg0, Iterable<MetricNameTemplate> arg1)

Parameters

arg0 String

String

arg1 Iterable<MetricNameTemplate>

Iterable

Returns

String

String