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 StorageEventLoggerThis 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlog(String s)voidlogDisruption(StorageChannel channel, Throwable t)Note that not all Throwables are Exceptions.static voidprintString(String s)static StringstackTraceToString(Throwable t)static StringtoChannelIdentifier(StorageChannel channel)static StringtoChannelIdentifier(StorageEntityCache<?> entityCache)static StringtoChannelPartIdentifier(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
-
-
-
-
Method Detail
-
printString
public static void printString(String s)
-
toChannelIdentifier
public static String toChannelIdentifier(StorageChannel channel)
-
toChannelIdentifier
public static String toChannelIdentifier(StorageEntityCache<?> entityCache)
-
toChannelPartIdentifier
public static String toChannelPartIdentifier(StorageHashChannelPart channelPart)
-
log
public void log(String s)
-
logDisruption
public void logDisruption(StorageChannel channel, Throwable t)
Description copied from interface:StorageEventLoggerNote 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:
logDisruptionin interfaceStorageEventLogger- Parameters:
channel- the affected channelt- the reason for the disruption
-
-