Class Metrics
public class Metrics : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AutoCloseable>Metrics
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])JVMBridgeBase<AutoCloseable>.DynBridgeClazzJVMBridgeBase<AutoCloseable>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
Metrics(MetricConfig, List<MetricsReporter>, Time)
public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2)
Parameters
arg0
MetricConfigarg1
List<MetricsReporter>arg2
Time
Metrics(MetricConfig, List<MetricsReporter>, Time, MetricsContext)
public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2, MetricsContext arg3)
Parameters
arg0
MetricConfigarg1
List<MetricsReporter>arg2
Timearg3
MetricsContext
Metrics(MetricConfig, List<MetricsReporter>, Time, bool)
public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2, bool arg3)
Parameters
arg0
MetricConfigarg1
List<MetricsReporter>arg2
Timearg3
bool
Metrics(MetricConfig, List<MetricsReporter>, Time, bool, MetricsContext)
public Metrics(MetricConfig arg0, List<MetricsReporter> arg1, Time arg2, bool arg3, MetricsContext arg4)
Parameters
arg0
MetricConfigarg1
List<MetricsReporter>arg2
Timearg3
boolarg4
MetricsContext
Metrics(MetricConfig, Time)
public Metrics(MetricConfig arg0, Time arg1)
Parameters
arg0
MetricConfigarg1
Time
Metrics(Time)
public Metrics(Time arg0)
Parameters
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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
AddMetric(MetricName, Measurable)
public void AddMetric(MetricName arg0, Measurable arg1)
Parameters
arg0
MetricNamearg1
Measurable
AddMetric(MetricName, MetricConfig, Measurable)
public void AddMetric(MetricName arg0, MetricConfig arg1, Measurable arg2)
Parameters
arg0
MetricNamearg1
MetricConfigarg2
Measurable
AddMetric(MetricName, MetricConfig, MetricValueProvider<object>)
public void AddMetric(MetricName arg0, MetricConfig arg1, MetricValueProvider<object> arg2)
Parameters
arg0
MetricNamearg1
MetricConfigarg2
MetricValueProvider<object>
AddMetric(MetricName, MetricValueProvider<object>)
public void AddMetric(MetricName arg0, MetricValueProvider<object> arg1)
Parameters
AddMetricIfAbsent(MetricName, MetricConfig, MetricValueProvider<object>)
public KafkaMetric AddMetricIfAbsent(MetricName arg0, MetricConfig arg1, MetricValueProvider<object> arg2)
Parameters
arg0
MetricNamearg1
MetricConfigarg2
MetricValueProvider<object>
Returns
AddReporter(MetricsReporter)
public void AddReporter(MetricsReporter arg0)
Parameters
Close()
public void Close()
Config()
public MetricConfig Config()
Returns
GetSensor(String)
public Sensor GetSensor(String arg0)
Parameters
Returns
Metric(MetricName)
public KafkaMetric Metric(MetricName arg0)
Parameters
arg0
MetricName
Returns
MetricInstance(MetricNameTemplate, params String[])
public MetricName MetricInstance(MetricNameTemplate arg0, params String[] arg1)
Parameters
arg0
MetricNameTemplatearg1
String[]
Returns
MetricInstance(MetricNameTemplate, Map<String, String>)
public MetricName MetricInstance(MetricNameTemplate arg0, Map<String, String> arg1)
Parameters
arg0
MetricNameTemplatearg1
Map<String, String>
Returns
MetricName(String, String)
public MetricName MetricName(String arg0, String arg1)
Parameters
Returns
MetricName(String, String, String)
public MetricName MetricName(String arg0, String arg1, String arg2)
Parameters
Returns
MetricName(String, String, String, params String[])
public MetricName MetricName(String arg0, String arg1, String arg2, params String[] arg3)
Parameters
Returns
MetricName(String, String, String, Map<String, String>)
public MetricName MetricName(String arg0, String arg1, String arg2, Map<String, String> arg3)
Parameters
Returns
MetricName(String, String, Map<String, String>)
public MetricName MetricName(String arg0, String arg1, Map<String, String> arg2)
Parameters
Returns
MetricsMethod()
public Map<MetricName, KafkaMetric> MetricsMethod()
Returns
RemoveMetric(MetricName)
public KafkaMetric RemoveMetric(MetricName arg0)
Parameters
arg0
MetricName
Returns
RemoveReporter(MetricsReporter)
public void RemoveReporter(MetricsReporter arg0)
Parameters
RemoveSensor(String)
public void RemoveSensor(String arg0)
Parameters
Reporters()
public List<MetricsReporter> Reporters()
Returns
Sensor(String)
public Sensor Sensor(String arg0)
Parameters
Returns
Sensor(String, MetricConfig, RecordingLevel, params Sensor[])
public Sensor Sensor(String arg0, MetricConfig arg1, Sensor.RecordingLevel arg2, params Sensor[] arg3)
Parameters
arg0
Stringarg1
MetricConfigarg2
Sensor.RecordingLevelarg3
Sensor[]
Returns
Sensor(String, MetricConfig, params Sensor[])
public Sensor Sensor(String arg0, MetricConfig arg1, params Sensor[] arg2)
Parameters
arg0
Stringarg1
MetricConfigarg2
Sensor[]
Returns
Sensor(String, MetricConfig, long, RecordingLevel, params Sensor[])
public Sensor Sensor(String arg0, MetricConfig arg1, long arg2, Sensor.RecordingLevel arg3, params Sensor[] arg4)
Parameters
arg0
Stringarg1
MetricConfigarg2
longarg3
Sensor.RecordingLevelarg4
Sensor[]
Returns
Sensor(String, MetricConfig, long, params Sensor[])
public Sensor Sensor(String arg0, MetricConfig arg1, long arg2, params Sensor[] arg3)
Parameters
arg0
Stringarg1
MetricConfigarg2
longarg3
Sensor[]
Returns
Sensor(String, RecordingLevel)
public Sensor Sensor(String arg0, Sensor.RecordingLevel arg1)
Parameters
arg0
Stringarg1
Sensor.RecordingLevel
Returns
Sensor(String, RecordingLevel, params Sensor[])
public Sensor Sensor(String arg0, Sensor.RecordingLevel arg1, params Sensor[] arg2)
Parameters
arg0
Stringarg1
Sensor.RecordingLevelarg2
Sensor[]
Returns
Sensor(String, params Sensor[])
public Sensor Sensor(String arg0, params Sensor[] arg1)
Parameters
Returns
ToHtmlTable(String, Iterable<MetricNameTemplate>)
public static String ToHtmlTable(String arg0, Iterable<MetricNameTemplate> arg1)
Parameters
arg0
Stringarg1
Iterable<MetricNameTemplate>