Table of Contents

Class KafkaMetric

Namespace
Org.Apache.Kafka.Common.Metrics
Assembly
MASES.KNet.dll
public class KafkaMetric : Metric, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IMetric
Inheritance
KafkaMetric
Implements

Constructors

KafkaMetric(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public KafkaMetric(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

KafkaMetric(object, MetricName, MetricValueProvider<object>, MetricConfig, Time)

public KafkaMetric(object arg0, MetricName arg1, MetricValueProvider<object> arg2, MetricConfig arg3, Time arg4)

Parameters

arg0 object

object

arg1 MetricName

MetricName

arg2 MetricValueProvider<object>

MetricValueProvider

arg3 MetricConfig

MetricConfig

arg4 Time

Time

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Config()

public MetricConfig Config()

Returns

MetricConfig

MetricConfig

Config(MetricConfig)

public void Config(MetricConfig arg0)

Parameters

arg0 MetricConfig

MetricConfig

CreatePoolableInstance(object, MetricName, MetricValueProvider<object>, MetricConfig, Time)

HPA initializer for KafkaMetric(object arg0, Org.Apache.Kafka.Common.MetricName arg1, Org.Apache.Kafka.Common.Metrics.MetricValueProvider%3Cobject%3E arg2, Org.Apache.Kafka.Common.Metrics.MetricConfig arg3, Org.Apache.Kafka.Common.Utils.Time arg4)

public static KafkaMetric CreatePoolableInstance(object arg0, MetricName arg1, MetricValueProvider<object> arg2, MetricConfig arg3, Time arg4)

Parameters

arg0 object
arg1 MetricName
arg2 MetricValueProvider<object>
arg3 MetricConfig
arg4 Time

Returns

KafkaMetric

IsMeasurable()

public bool IsMeasurable()

Returns

bool

bool

Measurable()

public Measurable Measurable()

Returns

Measurable

Measurable

MetricName()

public MetricName MetricName()

Returns

MetricName

MetricName

MetricValue()

public object MetricValue()

Returns

object

object