test_class.declarator: underTest
test_class.modifier: private
test_class.original_string: private DefaultConnectionMetricsCounter underTest;
test_class.type: DefaultConnectionMetricsCounter
test_class.var_name: underTest
test_class.file: services/connectivity/messaging/src/test/java/org/eclipse/ditto/services/connectivity/messaging/monitoring/metrics/DefaultConnectionMetricsCounterTest.java
test_class.identifier: DefaultConnectionMetricsCounterTest
test_case.body: @Test
      public void testResetCounter() {
          // initially counter is expected to be empty
          assertCounterValues(0L, 0L);
  
          // record some values
          recordCounterValues(10, 5);
  
          // expect the correct counter values
          assertCounterValues(10L, 5L);
  
          // reset counter
          underTest.reset();
  
          // counter is expected to be empty after reset
          assertCounterValues(0L, 0L);
  
          // record some values again
          recordCounterValues(20, 10);
          // expect the correct counter values
          assertCounterValues(20L, 10L);
      }
test_case.class_method_signature: DefaultConnectionMetricsCounterTest.testResetCounter()
test_case.full_signature: @Test public void testResetCounter()
test_case.identifier: testResetCounter
test_case.invocations: assertCounterValues recordCounterValues assertCounterValues reset assertCounterValues recordCounterValues assertCounterValues
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResetCounter()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(DefaultConnectionMetricsCounter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(DefaultConnectionMetricsCounter.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: metricDirection
focal_class.modifier: private final
focal_class.original_string: private final MetricDirection metricDirection;
focal_class.type: MetricDirection
focal_class.var_name: metricDirection
focal_class.declarator: address
focal_class.modifier: private final
focal_class.original_string: private final String address;
focal_class.type: String
focal_class.var_name: address
focal_class.declarator: metricType
focal_class.modifier: private final
focal_class.original_string: private final MetricType metricType;
focal_class.type: MetricType
focal_class.var_name: metricType
focal_class.declarator: counter
focal_class.modifier: private final
focal_class.original_string: private final SlidingWindowCounter counter;
focal_class.type: SlidingWindowCounter
focal_class.var_name: counter
focal_class.file: services/connectivity/messaging/src/main/java/org/eclipse/ditto/services/connectivity/messaging/monitoring/metrics/DefaultConnectionMetricsCounter.java
focal_class.identifier: DefaultConnectionMetricsCounter
focal_class.interfaces: implements ConnectionMetricsCounter
focal_class.class_method_signature: DefaultConnectionMetricsCounter.DefaultConnectionMetricsCounter(
              final MetricDirection metricDirection,
              final String address,
              final MetricType metricType,
              SlidingWindowCounter counter)
focal_class.full_signature:   DefaultConnectionMetricsCounter(
              final MetricDirection metricDirection,
              final String address,
              final MetricType metricType,
              SlidingWindowCounter counter)
focal_class.identifier: DefaultConnectionMetricsCounter
focal_class.parameters: (
              final MetricDirection metricDirection,
              final String address,
              final MetricType metricType,
              SlidingWindowCounter counter)
focal_class.signature:  DefaultConnectionMetricsCounter(
              final MetricDirection metricDirection,
              final String address,
              final MetricType metricType,
              SlidingWindowCounter counter)
focal_class.class_method_signature: DefaultConnectionMetricsCounter.recordSuccess()
focal_class.full_signature: @Override public void recordSuccess()
focal_class.identifier: recordSuccess
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void recordSuccess()
focal_class.class_method_signature: DefaultConnectionMetricsCounter.recordFailure()
focal_class.full_signature: @Override public void recordFailure()
focal_class.identifier: recordFailure
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void recordFailure()
focal_class.class_method_signature: DefaultConnectionMetricsCounter.reset()
focal_class.full_signature: @Override public void reset()
focal_class.identifier: reset
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: DefaultConnectionMetricsCounter.logAction(final String action)
focal_class.full_signature: private void logAction(final String action)
focal_class.identifier: logAction
focal_class.modifiers: private
focal_class.parameters: (final String action)
focal_class.return: void
focal_class.signature: void logAction(final String action)
focal_class.class_method_signature: DefaultConnectionMetricsCounter.getMetricType()
focal_class.full_signature: @Override public MetricType getMetricType()
focal_class.identifier: getMetricType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MetricType
focal_class.signature: MetricType getMetricType()
focal_class.class_method_signature: DefaultConnectionMetricsCounter.getMetricDirection()
focal_class.full_signature:  MetricDirection getMetricDirection()
focal_class.identifier: getMetricDirection
focal_class.parameters: ()
focal_class.return: MetricDirection
focal_class.signature: MetricDirection getMetricDirection()
focal_class.class_method_signature: DefaultConnectionMetricsCounter.getAddress()
focal_class.full_signature:  String getAddress()
focal_class.identifier: getAddress
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAddress()
focal_class.class_method_signature: DefaultConnectionMetricsCounter.toMeasurement(final boolean success)
focal_class.full_signature:  Measurement toMeasurement(final boolean success)
focal_class.identifier: toMeasurement
focal_class.parameters: (final boolean success)
focal_class.return: Measurement
focal_class.signature: Measurement toMeasurement(final boolean success)
focal_class.class_method_signature: DefaultConnectionMetricsCounter.getLastMessageTimestamp(final boolean success)
focal_class.full_signature: private Instant getLastMessageTimestamp(final boolean success)
focal_class.identifier: getLastMessageTimestamp
focal_class.modifiers: private
focal_class.parameters: (final boolean success)
focal_class.return: Instant
focal_class.signature: Instant getLastMessageTimestamp(final boolean success)
focal_class.class_method_signature: DefaultConnectionMetricsCounter.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: DefaultConnectionMetricsCounter.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DefaultConnectionMetricsCounter.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      public void reset() {
          logAction("Reset counter");
          counter.reset();
      }
focal_method.class_method_signature: DefaultConnectionMetricsCounter.reset()
focal_method.full_signature: @Override public void reset()
focal_method.identifier: reset
focal_method.invocations: logAction reset
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void reset()