test_class.declarator: INFO_PROVIDER = InfoProviderFactory.empty()
test_class.modifier: private static final
test_class.original_string: private static final ConnectionMonitor.InfoProvider INFO_PROVIDER = InfoProviderFactory.empty();
test_class.type: ConnectionMonitor.InfoProvider
test_class.var_name: INFO_PROVIDER
test_class.declarator: MESSAGE = "something happened to {0}"
test_class.modifier: private static final
test_class.original_string: private static final String MESSAGE = "something happened to {0}";
test_class.type: String
test_class.var_name: MESSAGE
test_class.declarator: MESSAGE_ARGUMENTS = {"ditto"}
test_class.modifier: private static final
test_class.original_string: private static final Object[] MESSAGE_ARGUMENTS = {"ditto"};
test_class.type: Object[]
test_class.var_name: MESSAGE_ARGUMENTS
test_class.declarator: THING_ID = ThingId.of("the:thing")
test_class.modifier: private static final
test_class.original_string: private static final ThingId THING_ID = ThingId.of("the:thing");
test_class.type: ThingId
test_class.var_name: THING_ID
test_class.declarator: SIGNAL =
              RetrieveConnectionLogs.of(TestConstants.createRandomConnectionId(), DittoHeaders.empty())
test_class.modifier: private static final
test_class.original_string: private static final Signal<?> SIGNAL =
              RetrieveConnectionLogs.of(TestConstants.createRandomConnectionId(), DittoHeaders.empty());
test_class.type: Signal<?>
test_class.var_name: SIGNAL
test_class.declarator: DITTO_RUNTIME_EXCEPTION = DittoRuntimeException.newBuilder("any.error", HttpStatusCode.BAD_REQUEST).build()
test_class.modifier: private static final
test_class.original_string: private static final DittoRuntimeException DITTO_RUNTIME_EXCEPTION = DittoRuntimeException.newBuilder("any.error", HttpStatusCode.BAD_REQUEST).build();
test_class.type: DittoRuntimeException
test_class.var_name: DITTO_RUNTIME_EXCEPTION
test_class.declarator: EXCEPTION = new IllegalArgumentException()
test_class.modifier: private static final
test_class.original_string: private static final Exception EXCEPTION = new IllegalArgumentException();
test_class.type: Exception
test_class.var_name: EXCEPTION
test_class.declarator: delegate
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ConnectionLogger delegate;
test_class.type: ConnectionLogger
test_class.var_name: delegate
test_class.file: services/connectivity/messaging/src/test/java/org/eclipse/ditto/services/connectivity/messaging/monitoring/logs/DefaultMuteableConnectionLoggerTest.java
test_class.identifier: DefaultMuteableConnectionLoggerTest
test_case.body: @Test
      public void failure1() {
          final DefaultMuteableConnectionLogger unmuted = unmuted();
  
          unmuted.failure(INFO_PROVIDER, MESSAGE, THING_ID);
          verify(delegate).failure(INFO_PROVIDER, MESSAGE, THING_ID);
      }
test_case.class_method_signature: DefaultMuteableConnectionLoggerTest.failure1()
test_case.full_signature: @Test public void failure1()
test_case.identifier: failure1
test_case.invocations: unmuted failure failure verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void failure1()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(DefaultMuteableConnectionLogger.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(DefaultMuteableConnectionLogger.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: connectionId
focal_class.modifier: private final
focal_class.original_string: private final ConnectionId connectionId;
focal_class.type: ConnectionId
focal_class.var_name: connectionId
focal_class.declarator: delegate
focal_class.modifier: private final
focal_class.original_string: private final ConnectionLogger delegate;
focal_class.type: ConnectionLogger
focal_class.var_name: delegate
focal_class.declarator: active
focal_class.modifier: private
focal_class.original_string: private boolean active;
focal_class.type: boolean
focal_class.var_name: active
focal_class.file: services/connectivity/messaging/src/main/java/org/eclipse/ditto/services/connectivity/messaging/monitoring/logs/DefaultMuteableConnectionLogger.java
focal_class.identifier: DefaultMuteableConnectionLogger
focal_class.interfaces: implements MuteableConnectionLogger
focal_class.class_method_signature: DefaultMuteableConnectionLogger.DefaultMuteableConnectionLogger(final ConnectionId connectionId, final ConnectionLogger delegate)
focal_class.full_signature:   DefaultMuteableConnectionLogger(final ConnectionId connectionId, final ConnectionLogger delegate)
focal_class.identifier: DefaultMuteableConnectionLogger
focal_class.parameters: (final ConnectionId connectionId, final ConnectionLogger delegate)
focal_class.signature:  DefaultMuteableConnectionLogger(final ConnectionId connectionId, final ConnectionLogger delegate)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.mute()
focal_class.full_signature: @Override public void mute()
focal_class.identifier: mute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void mute()
focal_class.class_method_signature: DefaultMuteableConnectionLogger.unmute()
focal_class.full_signature: @Override public void unmute()
focal_class.identifier: unmute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void unmute()
focal_class.class_method_signature: DefaultMuteableConnectionLogger.isMuted()
focal_class.full_signature: @Override public boolean isMuted()
focal_class.identifier: isMuted
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isMuted()
focal_class.class_method_signature: DefaultMuteableConnectionLogger.success(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.full_signature: @Override public void success(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.identifier: success
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider)
focal_class.return: void
focal_class.signature: void success(final ConnectionMonitor.InfoProvider infoProvider)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.success(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.full_signature: @Override public void success(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.identifier: success
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.return: void
focal_class.signature: void success(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.failure(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)
focal_class.full_signature: @Override public void failure(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)
focal_class.identifier: failure
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)
focal_class.return: void
focal_class.signature: void failure(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.failure(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.full_signature: @Override public void failure(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.identifier: failure
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.return: void
focal_class.signature: void failure(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.exception(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.full_signature: @Override public void exception(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.identifier: exception
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.return: void
focal_class.signature: void exception(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final Exception exception)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.exception(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.full_signature: @Override public void exception(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.identifier: exception
focal_class.modifiers: @Override public
focal_class.parameters: (final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.return: void
focal_class.signature: void exception(final ConnectionMonitor.InfoProvider infoProvider, final String message,
              final Object... messageArguments)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: DefaultMuteableConnectionLogger.getLogs()
focal_class.full_signature: @Override public Collection<LogEntry> getLogs()
focal_class.identifier: getLogs
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<LogEntry>
focal_class.signature: Collection<LogEntry> getLogs()
focal_class.class_method_signature: DefaultMuteableConnectionLogger.logTrace(final String message)
focal_class.full_signature: private void logTrace(final String message)
focal_class.identifier: logTrace
focal_class.modifiers: private
focal_class.parameters: (final String message)
focal_class.return: void
focal_class.signature: void logTrace(final String message)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.logTraceWithCorrelationId(final String message, final ConnectionMonitor.InfoProvider infoProvider, final Object... messageArguments)
focal_class.full_signature: private void logTraceWithCorrelationId(final String message, final ConnectionMonitor.InfoProvider infoProvider, final Object... messageArguments)
focal_class.identifier: logTraceWithCorrelationId
focal_class.modifiers: private
focal_class.parameters: (final String message, final ConnectionMonitor.InfoProvider infoProvider, final Object... messageArguments)
focal_class.return: void
focal_class.signature: void logTraceWithCorrelationId(final String message, final ConnectionMonitor.InfoProvider infoProvider, final Object... messageArguments)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.equals(@Nullable final Object o)
focal_class.full_signature: @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: DefaultMuteableConnectionLogger.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: DefaultMuteableConnectionLogger.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 failure(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception) {
          if (active) {
              delegate.failure(infoProvider, exception);
          } else {
              logTraceWithCorrelationId("Not logging failure since logger is muted.", infoProvider);
          }
      }
focal_method.class_method_signature: DefaultMuteableConnectionLogger.failure(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)
focal_method.full_signature: @Override public void failure(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)
focal_method.identifier: failure
focal_method.invocations: failure logTraceWithCorrelationId
focal_method.modifiers: @Override public
focal_method.parameters: (final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)
focal_method.return: void
focal_method.signature: void failure(final ConnectionMonitor.InfoProvider infoProvider, @Nullable final DittoRuntimeException exception)