Class NoOpTelemetry
java.lang.Object
org.sonar.java.telemetry.NoOpTelemetry
- All Implemented Interfaces:
Telemetry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregateAsCounter
(TelemetryKey key, long value) Aggregates all the given values as a sum for the given key.void
aggregateAsFlag
(TelemetryKey key, boolean value) void
Same asTelemetry.aggregateAsSortedSet(TelemetryKey, String)
, but no value is added.void
aggregateAsSortedSet
(TelemetryKey key, String value) Aggregates all the given values as a sorted set for the given key.toMap()
-
Constructor Details
-
NoOpTelemetry
public NoOpTelemetry()
-
-
Method Details
-
aggregateAsSortedSet
Description copied from interface:Telemetry
Aggregates all the given values as a sorted set for the given key. The final map will contain the key and a comma-separated list of sorted values.- Specified by:
aggregateAsSortedSet
in interfaceTelemetry
-
aggregateAsSortedSet
Description copied from interface:Telemetry
Same asTelemetry.aggregateAsSortedSet(TelemetryKey, String)
, but no value is added. If this is the only call for the key, then the final map will be empty for the key.- Specified by:
aggregateAsSortedSet
in interfaceTelemetry
-
aggregateAsCounter
Description copied from interface:Telemetry
Aggregates all the given values as a sum for the given key.- Specified by:
aggregateAsCounter
in interfaceTelemetry
-
aggregateAsFlag
- Specified by:
aggregateAsFlag
in interfaceTelemetry
-
toMap
-