Table of Contents

Class MetricsReporter

Namespace
Org.Apache.Kafka.Common.Metrics
Assembly
MASES.KNet.dll

Listener for Kafka MetricsReporter. Extends MASES.JCOBridge.C2JBridge.JVMBridgeListener, implements IMetricsReporter

public class MetricsReporter : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IMetricsReporter, IJVMBridgeBase, IJVMBridgeDefinition, IReconfigurable, IConfigurable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<JVMBridgeListener>
JVMBridgeListener
MetricsReporter
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Derived
Inherited Members
JVMBridgeListener.Dispose()
JVMBridgeListener.AutoInit
JVMBridgeListener.IsBridgeStatic
JVMBridgeListener.IsBridgeCloseable
JVMBridgeListener.IsBridgeListener
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)
JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()
JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])
JVMBridgeBase<JVMBridgeListener>.DynBridgeClazz
JVMBridgeBase<JVMBridgeListener>.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.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeInterface
JVMBridgeBase.IsBridgeAbstract

Remarks

Dispose the object to avoid a resource leak, the object contains a reference to the corresponding JVM object

Constructors

MetricsReporter()

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

public MetricsReporter()

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

OnClose

public Action OnClose { get; set; }

Property Value

Action

Remarks

If OnClose has a value it takes precedence over corresponding class method

OnConfigure

public Action<Map<String, object>> OnConfigure { get; set; }

Property Value

Action<Map<String, object>>

Remarks

If OnConfigure has a value it takes precedence over corresponding class method

OnContextChange

public Action<MetricsContext> OnContextChange { get; set; }

Property Value

Action<MetricsContext>

Remarks

If OnContextChange has a value it takes precedence over corresponding class method

OnInit

public Action<List<KafkaMetric>> OnInit { get; set; }

Property Value

Action<List<KafkaMetric>>

Remarks

If OnInit has a value it takes precedence over corresponding class method

OnMetricChange

public Action<KafkaMetric> OnMetricChange { get; set; }

Property Value

Action<KafkaMetric>

Remarks

If OnMetricChange has a value it takes precedence over corresponding class method

OnMetricRemoval

public Action<KafkaMetric> OnMetricRemoval { get; set; }

Property Value

Action<KafkaMetric>

Remarks

If OnMetricRemoval has a value it takes precedence over corresponding class method

OnReconfigurableConfigs

public Func<Set<String>> OnReconfigurableConfigs { get; set; }

Property Value

Func<Set<String>>

Remarks

If OnReconfigurableConfigs has a value it takes precedence over corresponding class method

OnReconfigure

public Action<Map<String, object>> OnReconfigure { get; set; }

Property Value

Action<Map<String, object>>

Remarks

If OnReconfigure has a value it takes precedence over corresponding class method

OnValidateReconfiguration

public Action<Map<String, object>> OnValidateReconfiguration { get; set; }

Property Value

Action<Map<String, object>>

Remarks

If OnValidateReconfiguration has a value it takes precedence over corresponding class method

Methods

Close()

public virtual void Close()

Configure(Map<String, object>)

public virtual void Configure(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

ContextChange(MetricsContext)

public virtual void ContextChange(MetricsContext arg0)

Parameters

arg0 MetricsContext

MetricsContext

Remarks

The method invokes the default implementation in the JVM interface using ContextChangeDefault(MetricsContext); override the method to implement a different behavior

ContextChangeDefault(MetricsContext)

public void ContextChangeDefault(MetricsContext arg0)

Parameters

arg0 MetricsContext

MetricsContext

Remarks

The method invokes the default implementation in the JVM interface

Init(List<KafkaMetric>)

public virtual void Init(List<KafkaMetric> arg0)

Parameters

arg0 List<KafkaMetric>

List

InitializeHandlers()

Handlers initializer for MetricsReporter

protected virtual void InitializeHandlers()

MetricChange(KafkaMetric)

public virtual void MetricChange(KafkaMetric arg0)

Parameters

arg0 KafkaMetric

KafkaMetric

MetricRemoval(KafkaMetric)

public virtual void MetricRemoval(KafkaMetric arg0)

Parameters

arg0 KafkaMetric

KafkaMetric

ReconfigurableConfigs()

public virtual Set<String> ReconfigurableConfigs()

Returns

Set<String>

Set

Remarks

The method invokes the default implementation in the JVM interface using ReconfigurableConfigsDefault(); override the method to implement a different behavior

ReconfigurableConfigsDefault()

public Set<String> ReconfigurableConfigsDefault()

Returns

Set<String>

Set

Remarks

The method invokes the default implementation in the JVM interface

Reconfigure(Map<String, object>)

public virtual void Reconfigure(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Remarks

The method invokes the default implementation in the JVM interface using ReconfigureDefault(Map<String, object>); override the method to implement a different behavior

ReconfigureDefault(Map<String, object>)

public void ReconfigureDefault(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Remarks

The method invokes the default implementation in the JVM interface

ValidateReconfiguration(Map<String, object>)

public virtual void ValidateReconfiguration(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Remarks

The method invokes the default implementation in the JVM interface using ValidateReconfigurationDefault(Map<String, object>); override the method to implement a different behavior

Exceptions

ConfigException

ValidateReconfigurationDefault(Map<String, object>)

public void ValidateReconfigurationDefault(Map<String, object> arg0)

Parameters

arg0 Map<String, object>

Map

Remarks

The method invokes the default implementation in the JVM interface

Exceptions

ConfigException