Class ServerStateLoggerCoreV2
java.lang.Object
io.deephaven.enterprise.binlog.buffered.impl.MultiPartitionLoggerThreadSafeBase
io.deephaven.enterprise.binlog.internal.gen.ServerStateLoggerCoreV2
- All Implemented Interfaces:
Logger,Closeable,Flushable,AutoCloseable
Automatically generated Deephaven binary logger for DbInternal.ServerStateLogCoreV2 format 1. For configuration details, see `io.deephaven.enterprise.schema.internal.LogFormat`
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe header encoder.static final classThe row encoder. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final byteFlag indicating that this row is the end of a transaction.static final byteFlag indicating that this row is neither the beginning nor end of a transaction.static final byteFlag indicating that this row is the beginning and end of a transaction.static final byteFlag indicating that this row is the beginning of a transaction.static final booleanIf this is a System namespacestatic final intThe log format versionstatic final intstatic final StringThe Namespacestatic final StringThe TableName -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidprotected final voidprotected final voidcommitBuffers(int arg0) static ByteBuffervoidlog(String Date, byte flags, long IntervalStartTime, int IntervalDurationMicros, int TotalMemoryMiB, int FreeMemoryMiB, short IntervalCollections, int IntervalCollectionTimeMicros, short IntervalUGPCyclesOnBudget, int[] IntervalUGPCyclesTimeMicros, short IntervalUGPCyclesSafePoints, int IntervalUGPCyclesSafePointTimeMicros) Encodes the data into this logger's buffer.static LoggerInfo<ServerStateLoggerCoreV2>The basic logger information.static ServerStateLoggerCoreV2of(boolean flushOnLog, MultiPartitionWriter writer) Initialize a logger for the DbInternal.ServerStateLogCoreV2 table, with log format 1.protected final voidprotected final ByteBuffertoString()Methods inherited from class io.deephaven.enterprise.binlog.buffered.impl.MultiPartitionLoggerThreadSafeBase
close, flush
-
Field Details
-
FLAG_NONE
public static final byte FLAG_NONEFlag indicating that this row is neither the beginning nor end of a transaction.- See Also:
-
FLAG_START
public static final byte FLAG_STARTFlag indicating that this row is the beginning of a transaction.- See Also:
-
FLAG_END
public static final byte FLAG_ENDFlag indicating that this row is the end of a transaction.- See Also:
-
FLAG_SINGLE_ROW
public static final byte FLAG_SINGLE_ROWFlag indicating that this row is the beginning and end of a transaction.- See Also:
-
IS_SYSTEM_NAMESPACE
public static final boolean IS_SYSTEM_NAMESPACEIf this is a System namespace- See Also:
-
NAMESPACE
The Namespace- See Also:
-
TABLE_NAME
The TableName- See Also:
-
LOG_FORMAT
public static final int LOG_FORMATThe log format version- See Also:
-
MAX_ENTRY_SIZE
public static final int MAX_ENTRY_SIZE- See Also:
-
BUFFER_SIZE
public static final int BUFFER_SIZE- See Also:
-
-
Method Details
-
header
public static ByteBuffer header(String AuthenticatedUser, String EffectiveUser, String ProcessInfoId) -
of
Initialize a logger for the DbInternal.ServerStateLogCoreV2 table, with log format 1. The returned logger will own a byte array buffer of size 2 MiB (`bufferSize`) whenflushOnLog == false, otherwise 1 MiB (`maxEntrySize`).- Parameters:
flushOnLog- if the returned logger should be flushed on every log callwriter- the writer for this logger- Returns:
- the logger
-
log
public void log(String Date, byte flags, long IntervalStartTime, int IntervalDurationMicros, int TotalMemoryMiB, int FreeMemoryMiB, short IntervalCollections, int IntervalCollectionTimeMicros, short IntervalUGPCyclesOnBudget, int[] IntervalUGPCyclesTimeMicros, short IntervalUGPCyclesSafePoints, int IntervalUGPCyclesSafePointTimeMicros) throws IOException Encodes the data into this logger's buffer. If the remaining size of the buffer after logging is less than 1 MiB (`maxEntrySize`), this logger will be internallyflushed.- Parameters:
Date- the partitionflags- the flags for this row, which start and end transactionsIntervalStartTime- the IntervalStartTime value, in millis from the epochIntervalDurationMicros- the IntervalDurationMicros valueTotalMemoryMiB- the TotalMemoryMiB valueFreeMemoryMiB- the FreeMemoryMiB valueIntervalCollections- the IntervalCollections valueIntervalCollectionTimeMicros- the IntervalCollectionTimeMicros valueIntervalUGPCyclesOnBudget- the IntervalUGPCyclesOnBudget valueIntervalUGPCyclesTimeMicros- the IntervalUGPCyclesTimeMicros valueIntervalUGPCyclesSafePoints- the IntervalUGPCyclesSafePoints valueIntervalUGPCyclesSafePointTimeMicros- the IntervalUGPCyclesSafePointTimeMicros value- Throws:
IOException
-
loggerInfo
The basic logger information.- Returns:
- the basic logger information
-
toString
-
partition
- Throws:
IOException
-
takeBuffer
- Throws:
IOException
-
abortBuffer
protected final void abortBuffer() -
commitBuffer
- Throws:
IOException
-
commitBuffers
- Throws:
IOException
-