Class NoOpMetricsClient
- All Implemented Interfaces:
MetricsClient,AutoCloseable
MetricsClient.
All methods do nothing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustGauge(String metric, double delta) Adjust the specified gauge's value.voidadjustGauge(String metric, double delta, Unit unit) Adjust the specified gauge's value.voidadjustGauge(String metric, double delta, Unit unit, Set<Dimension> dimensions) Adjust the specified gauge's value.voidadjustGauge(String metric, double delta, Set<Dimension> dimensions) Adjust the specified gauge's value.voidSet the specified attribute's value.voidSet the specified attribute's value.voidClear all periodically sampled gauges.voidclose()Overridden to remove checked exception constraint.voidAdjust the counter value.voidAdjust the counter value.voidAdjust the counter value.voidAdjust the counter value.voidDecrement the counter by 1.voidDecrement the counter by 1.voidDecrement the counter by 1.voidDecrement the counter by 1.voidReport an event.voidReport an event.voidSet the specified gauge's value.voidSet the specified gauge's value.voidSet the specified gauge's value.voidSet the specified gauge's value.voidgauge(String metric, DoubleSupplier supplier) Register periodic sampling of a gauge.voidgauge(String metric, DoubleSupplier supplier, Unit unit) Register periodic sampling of a gauge.voidRegister periodic sampling of a gauge.voidgauge(String metric, DoubleSupplier supplier, Set<Dimension> dimensions) Register periodic sampling of a gauge.voidIncrement the counter by 1.voidIncrement the counter by 1.voidIncrement the counter by 1.voidIncrement the counter by 1.voidremoveGaugeSampler(String metric) Remove a periodically sampled gauge that was registered viaMetricsClient.gauge(String, DoubleSupplier)orMetricsClient.gauge(String, DoubleSupplier, Unit).voidremoveGaugeSampler(String metric, Set<Dimension> dimensions) Remove a periodically sampled gauge that was registered viaMetricsClient.gauge(String, DoubleSupplier, Set)orMetricsClient.gauge(String, DoubleSupplier, Unit, Set).voidReport elapsed time (in milliseconds) of an operation.voidReport elapsed time (in milliseconds) of an operation.voidReport elapsed time (in milliseconds) of an operation.voidReport elapsed time (in milliseconds) of an operation.voidReport a unique value in a bucket or "set".voidReport a unique value in a bucket or "set".Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.itrsgroup.collection.instr.MetricsClient
adjustGauge, adjustGauge, adjustGauge, adjustGauge, attribute, attribute, count, count, count, count, decrement, decrement, decrement, decrement, event, event, gauge, gauge, gauge, gauge, gauge, gauge, gauge, gauge, increment, increment, increment, increment, removeGaugeSampler, removeGaugeSampler, timer, timer, timer, timer, timer, timer, timer, timer, timer, timer, timer, timer, unique, unique
-
Constructor Details
-
NoOpMetricsClient
public NoOpMetricsClient()
-
-
Method Details
-
close
public void close()Description copied from interface:MetricsClientOverridden to remove checked exception constraint.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMetricsClient
-
increment
Description copied from interface:MetricsClientIncrement the counter by 1.- Specified by:
incrementin interfaceMetricsClient- Parameters:
metric- metric name
-
increment
Description copied from interface:MetricsClientIncrement the counter by 1.This uses sampling in order to approximate the actual number of increments. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
incrementin interfaceMetricsClient- Parameters:
metric- metric namesampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
-
increment
Description copied from interface:MetricsClientIncrement the counter by 1.- Specified by:
incrementin interfaceMetricsClient- Parameters:
metric- metric namedimensions- dimensions identifying the entity
-
increment
Description copied from interface:MetricsClientIncrement the counter by 1.This uses sampling in order to approximate the actual number of increments. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
incrementin interfaceMetricsClient- Parameters:
metric- metric namesampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.dimensions- dimensions identifying the entity
-
decrement
Description copied from interface:MetricsClientDecrement the counter by 1.- Specified by:
decrementin interfaceMetricsClient- Parameters:
metric- metric name
-
decrement
Description copied from interface:MetricsClientDecrement the counter by 1.This uses sampling in order to approximate the actual number of increments. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
decrementin interfaceMetricsClient- Parameters:
metric- metric namesampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
-
decrement
Description copied from interface:MetricsClientDecrement the counter by 1.- Specified by:
decrementin interfaceMetricsClient- Parameters:
metric- metric namedimensions- dimensions identifying the entity
-
decrement
Description copied from interface:MetricsClientDecrement the counter by 1.This uses sampling in order to approximate the actual number of increments. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
decrementin interfaceMetricsClient- Parameters:
metric- metric namesampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.dimensions- dimensions identifying the entity
-
count
Description copied from interface:MetricsClientAdjust the counter value.- Specified by:
countin interfaceMetricsClient- Parameters:
metric- metric namedelta- adjustment value
-
count
Description copied from interface:MetricsClientAdjust the counter value.This uses sampling in order to approximate the actual number of increments. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
countin interfaceMetricsClient- Parameters:
metric- metric namedelta- adjustment valuesampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
-
count
Description copied from interface:MetricsClientAdjust the counter value.- Specified by:
countin interfaceMetricsClient- Parameters:
metric- metric namedelta- adjustment valuedimensions- dimensions identifying the entity
-
count
Description copied from interface:MetricsClientAdjust the counter value.This uses sampling in order to approximate the actual number of increments. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
countin interfaceMetricsClient- Parameters:
metric- metric namedelta- adjustment valuesampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.dimensions- dimensions identifying the entity
-
gauge
Description copied from interface:MetricsClientRegister periodic sampling of a gauge.The client will sample the value at its configured sampling interval.
This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.
- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric namesupplier- value supplier called once per sampling interval
-
gauge
Description copied from interface:MetricsClientRegister periodic sampling of a gauge.The client will sample the value at its configured sampling interval.
This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.
- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric namesupplier- value supplier called once per sampling intervaldimensions- dimensions identifying the entity
-
gauge
Description copied from interface:MetricsClientRegister periodic sampling of a gauge.The client will sample the value at its configured sampling interval.
This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.
- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric namesupplier- value supplier called once per sampling intervalunit- unit of measure
-
gauge
Description copied from interface:MetricsClientRegister periodic sampling of a gauge.The client will sample the value at its configured sampling interval.
This method should only be called once per unique combination of metric name and dimensions. Duplicate registrations are ignored and may be reported via an implementation-specific error handler.
- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric namesupplier- value supplier called once per sampling intervalunit- unit of measuredimensions- dimensions identifying the entity
-
gauge
Description copied from interface:MetricsClientSet the specified gauge's value.- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric nameabsoluteValue- absolute value
-
gauge
Description copied from interface:MetricsClientSet the specified gauge's value.- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric nameabsoluteValue- absolute valueunit- unit of measure
-
gauge
Description copied from interface:MetricsClientSet the specified gauge's value.- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric nameabsoluteValue- absolute valuedimensions- dimensions identifying the entity
-
gauge
Description copied from interface:MetricsClientSet the specified gauge's value.- Specified by:
gaugein interfaceMetricsClient- Parameters:
metric- metric nameabsoluteValue- absolute valueunit- unit of measuredimensions- dimensions identifying the entity
-
adjustGauge
Description copied from interface:MetricsClientAdjust the specified gauge's value.- Specified by:
adjustGaugein interfaceMetricsClient- Parameters:
metric- metric namedelta- amount to adjust by
-
adjustGauge
Description copied from interface:MetricsClientAdjust the specified gauge's value.- Specified by:
adjustGaugein interfaceMetricsClient- Parameters:
metric- metric namedelta- amount to adjust byunit- unit of measure
-
adjustGauge
Description copied from interface:MetricsClientAdjust the specified gauge's value.- Specified by:
adjustGaugein interfaceMetricsClient- Parameters:
metric- metric namedelta- amount to adjust bydimensions- dimensions identifying the entity
-
adjustGauge
Description copied from interface:MetricsClientAdjust the specified gauge's value.- Specified by:
adjustGaugein interfaceMetricsClient- Parameters:
metric- metric namedelta- amount to adjust byunit- unit of measuredimensions- dimensions identifying the entity
-
removeGaugeSampler
Description copied from interface:MetricsClientRemove a periodically sampled gauge that was registered viaMetricsClient.gauge(String, DoubleSupplier)orMetricsClient.gauge(String, DoubleSupplier, Unit).The metric name must correspond exactly to the original registration. The unit is ignored.
- Specified by:
removeGaugeSamplerin interfaceMetricsClient- Parameters:
metric- metric name
-
removeGaugeSampler
Description copied from interface:MetricsClientRemove a periodically sampled gauge that was registered viaMetricsClient.gauge(String, DoubleSupplier, Set)orMetricsClient.gauge(String, DoubleSupplier, Unit, Set).The metric name and dimensions must correspond exactly to the original registration. The unit is ignored.
- Specified by:
removeGaugeSamplerin interfaceMetricsClient- Parameters:
metric- metric namedimensions- dimensions
-
clearGaugeSamplers
public void clearGaugeSamplers()Description copied from interface:MetricsClientClear all periodically sampled gauges.- Specified by:
clearGaugeSamplersin interfaceMetricsClient
-
unique
Description copied from interface:MetricsClientReport a unique value in a bucket or "set".The server will track the number of unique identifiers in the named set and report as a counter.
- Specified by:
uniquein interfaceMetricsClient- Parameters:
metric- set nameidentifier- unique identifier
-
unique
Description copied from interface:MetricsClientReport a unique value in a bucket or "set".The server will track the number of unique identifiers in the named set and report as a counter.
- Specified by:
uniquein interfaceMetricsClient- Parameters:
metric- set nameidentifier- unique identifierdimensions- dimensions identifying the entity
-
timer
Description copied from interface:MetricsClientReport elapsed time (in milliseconds) of an operation.- Specified by:
timerin interfaceMetricsClient- Parameters:
metric- timer namemillis- elapsed milliseconds
-
timer
Description copied from interface:MetricsClientReport elapsed time (in milliseconds) of an operation.This uses sampling in order to approximate the actual number of invocations. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
timerin interfaceMetricsClient- Parameters:
metric- timer namemillis- elapsed millisecondssampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.
-
timer
Description copied from interface:MetricsClientReport elapsed time (in milliseconds) of an operation.- Specified by:
timerin interfaceMetricsClient- Parameters:
metric- timer namemillis- elapsed millisecondsdimensions- dimensions identifying the entity
-
timer
Description copied from interface:MetricsClientReport elapsed time (in milliseconds) of an operation.This uses sampling in order to approximate the actual number of invocations. An update will be reported for only
sampleRate * 100percent of all invocations.- Specified by:
timerin interfaceMetricsClient- Parameters:
metric- timer namemillis- elapsed millisecondssampleRate- Percentage of invocations to actually report. If the specified value is zero or negative, nothing will be reported. If the value is 1 or greater, it will always report.dimensions- dimensions identifying the entity
-
event
Description copied from interface:MetricsClientReport an event.The event will be immediately reported for.
- Specified by:
eventin interfaceMetricsClient- Parameters:
name- event namemessage- messageseverity- severity
-
event
Description copied from interface:MetricsClientReport an event.The event will be immediately reported for.
- Specified by:
eventin interfaceMetricsClient- Parameters:
name- event namemessage- messageseverity- severitydimensions- dimensions identifying the entity
-
attribute
Description copied from interface:MetricsClientSet the specified attribute's value.- Specified by:
attributein interfaceMetricsClient- Parameters:
name- attribute namevalue- attribute value
-
attribute
Description copied from interface:MetricsClientSet the specified attribute's value.- Specified by:
attributein interfaceMetricsClient- Parameters:
name- attribute namevalue- attribute valuedimensions- dimensions identifying the entity
-