Class MetricsReporter
Listener for Kafka MetricsReporter. Extends JVMBridgeListener, implements IMetricsReporter
public class MetricsReporter : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IMetricsReporter, IJVMBridgeBase, IJVMBridgeDefinition, IReconfigurable, IConfigurable, IAutoCloseable
- Inheritance
-
MetricsReporter
- Implements
- Derived
- Inherited Members
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()
MetricsReporter(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 MetricsReporter(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
OnClose
public Action OnClose { get; set; }
Property Value
Remarks
If OnClose has a value it takes precedence over corresponding class method
OnConfigure
public Action<Map<String, object>> OnConfigure { get; set; }
Property Value
Remarks
If OnConfigure has a value it takes precedence over corresponding class method
OnContextChange
public Action<MetricsContext> OnContextChange { get; set; }
Property Value
Remarks
If OnContextChange has a value it takes precedence over corresponding class method
OnInit
public Action<List<KafkaMetric>> OnInit { get; set; }
Property Value
Remarks
If OnInit has a value it takes precedence over corresponding class method
OnMetricChange
public Action<KafkaMetric> OnMetricChange { get; set; }
Property Value
Remarks
If OnMetricChange has a value it takes precedence over corresponding class method
OnMetricRemoval
public Action<KafkaMetric> OnMetricRemoval { get; set; }
Property Value
Remarks
If OnMetricRemoval has a value it takes precedence over corresponding class method
OnReconfigurableConfigs
public Func<Set<String>> OnReconfigurableConfigs { get; set; }
Property Value
Remarks
If OnReconfigurableConfigs has a value it takes precedence over corresponding class method
OnReconfigure
public Action<Map<String, object>> OnReconfigure { get; set; }
Property Value
Remarks
If OnReconfigure has a value it takes precedence over corresponding class method
OnValidateReconfiguration
public Action<Map<String, object>> OnValidateReconfiguration { get; set; }
Property Value
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
ContextChange(MetricsContext)
public virtual void ContextChange(MetricsContext arg0)
Parameters
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
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>
InitializeHandlers()
Handlers initializer for MetricsReporter
protected virtual void InitializeHandlers()
MetricChange(KafkaMetric)
public virtual void MetricChange(KafkaMetric arg0)
Parameters
arg0
KafkaMetric
MetricRemoval(KafkaMetric)
public virtual void MetricRemoval(KafkaMetric arg0)
Parameters
arg0
KafkaMetric
ReconfigurableConfigs()
public virtual Set<String> ReconfigurableConfigs()
Returns
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
Remarks
The method invokes the default implementation in the JVM interface
Reconfigure(Map<String, object>)
public virtual void Reconfigure(Map<String, object> arg0)
Parameters
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
Remarks
The method invokes the default implementation in the JVM interface
ValidateReconfiguration(Map<String, object>)
public virtual void ValidateReconfiguration(Map<String, object> arg0)
Parameters
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
ValidateReconfigurationDefault(Map<String, object>)
public void ValidateReconfigurationDefault(Map<String, object> arg0)
Parameters
Remarks
The method invokes the default implementation in the JVM interface