Package one.microstream.storage.types
Class StorageEventLogger.Default
java.lang.Object
one.microstream.storage.types.StorageEventLogger.Default
- All Implemented Interfaces:
StorageEventLogger
- Direct Known Subclasses:
StorageEventLogger.Debug
- Enclosing interface:
- StorageEventLogger
public static class StorageEventLogger.Default extends Object implements StorageEventLogger
Default implementation of StorageEventLogger
This implementation doesn't log behavior but logs exceptions
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageEventLogger
StorageEventLogger.Debug, StorageEventLogger.Default, StorageEventLogger.NoOp
-
Field Summary
Fields Modifier and Type Field Description protected Consumer<? super String>
messageConsumer
-
Method Summary
Modifier and Type Method Description void
log(String s)
void
logDisruption(StorageChannel channel, Throwable t)
Note that not all Throwables are Exceptions.static void
printString(String s)
static String
stackTraceToString(Throwable t)
static String
toChannelIdentifier(StorageChannel channel)
static String
toChannelIdentifier(StorageEntityCache<?> entityCache)
static String
toChannelPartIdentifier(StorageHashChannelPart channelPart)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.microstream.storage.types.StorageEventLogger
logChannelProcessingDisabled, logChannelStoppedWorking, logGarbageCollectorCompleted, logGarbageCollectorCompletedHotPhase, logGarbageCollectorEncounteredZombieObjectId, logGarbageCollectorNotNeeded, logGarbageCollectorSweepingComplete, logLiveCheckComplete
-
Field Details
-
Method Details
-
printString
-
toChannelIdentifier
-
toChannelIdentifier
-
toChannelPartIdentifier
-
stackTraceToString
-
log
-
logDisruption
Description copied from interface:StorageEventLogger
Note that not all Throwables are Exceptions. There are also Errors. And not all exceptions are problems. There are also program execution control vehicles likeInterruptedException
. The actually fitting common term is "Disruption". Throwable is a very low-level technical, compiler-oriented expression.- Specified by:
logDisruption
in interfaceStorageEventLogger
-