Table of Contents

Class Sensor

Namespace
Org.Apache.Kafka.Common.Metrics
Assembly
MASES.KNet.dll
public class Sensor : JVMBridgeBase<Sensor>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
Sensor
Implements
Inherited Members

Constructors

Sensor()

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

public Sensor()

Sensor(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 Sensor(params object[] args)

Parameters

args object[]

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 Closeable

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

Add(MetricName, MeasurableStat)

public bool Add(MetricName arg0, MeasurableStat arg1)

Parameters

arg0 MetricName

MetricName

arg1 MeasurableStat

MeasurableStat

Returns

bool

bool

Add(MetricName, MeasurableStat, MetricConfig)

public bool Add(MetricName arg0, MeasurableStat arg1, MetricConfig arg2)

Parameters

arg0 MetricName

MetricName

arg1 MeasurableStat

MeasurableStat

arg2 MetricConfig

MetricConfig

Returns

bool

bool

Add(CompoundStat)

public bool Add(CompoundStat arg0)

Parameters

arg0 CompoundStat

CompoundStat

Returns

bool

bool

Add(CompoundStat, MetricConfig)

public bool Add(CompoundStat arg0, MetricConfig arg1)

Parameters

arg0 CompoundStat

CompoundStat

arg1 MetricConfig

MetricConfig

Returns

bool

bool

CheckQuotas()

public void CheckQuotas()

CheckQuotas(long)

public void CheckQuotas(long arg0)

Parameters

arg0 long

long

HasExpired()

public bool HasExpired()

Returns

bool

bool

HasMetrics()

public bool HasMetrics()

Returns

bool

bool

Name()

public String Name()

Returns

String

String

Record()

public void Record()

Record(double)

public void Record(double arg0)

Parameters

arg0 double

double

Record(double, long)

public void Record(double arg0, long arg1)

Parameters

arg0 double

double

arg1 long

long

Record(double, long, bool)

public void Record(double arg0, long arg1, bool arg2)

Parameters

arg0 double

double

arg1 long

long

arg2 bool

bool

ShouldRecord()

public bool ShouldRecord()

Returns

bool

bool