Package io.deephaven.io.log.impl
Class LogEntryImpl
java.lang.Object
io.deephaven.io.log.impl.LogOutputBaseImpl
io.deephaven.io.log.impl.LogOutputCsvImpl
io.deephaven.io.log.impl.LogEntryImpl
- All Implemented Interfaces:
LogOutput
,LogEntry
,LogSink.Element
,ByteBufferSink
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.io.log.LogEntry
LogEntry.Helper, LogEntry.Null
Nested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
LogOutput.LongFormatter, LogOutput.Null, LogOutput.ObjFormatter<T>, LogOutput.ObjIntIntFormatter<T>, LogOutput.ObjObjFormatter<T,
U> -
Field Summary
Fields inherited from class io.deephaven.io.log.impl.LogOutputCsvImpl
lineSeparator
Fields inherited from class io.deephaven.io.log.impl.LogOutputBaseImpl
stream
Fields inherited from interface io.deephaven.base.log.LogOutput
APPENDABLE_ARRAY_FORMATTER, APPENDABLE_COLLECTION_FORMATTER, BASIC_FORMATTER, BOOLEAN_ARRAY_FORMATTER, INT_ARRAY_FORMATTER, LOCAL_DATE_TIME_FORMATTER, MILLIS_FROM_EPOCH_FORMATTER, millisFormatter, NULL, NULL_TERMINATED_STRING_FORMATTER, SOCKADDR_FORMATTER, STRING_ARRAY_FORMATTER, STRING_COLLECTION_FORMATTER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(boolean b) append
(byte[] ba) append
(byte[] ba, byte terminator) append
(byte[] ba, int pos, int length) append
(char c) append
(int i) append
(long l) append
(short s) append
(LogOutput.LongFormatter formatter, long n) <T> LogEntry
append
(LogOutput.ObjFormatter<T> objFormatter, T t) <T> LogEntry
append
(LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) <T,
U> LogEntry append
(LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) append
(LogOutputAppendable appendable) append
(CharSequence seq) append
(CharSequence seq, int start, int length) append
(ByteBuffer bb) Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer.appendDouble
(double f) appendTimestamp
(long utcMillis, TimestampBuffer tb) appendTimestampMicros
(long utcMicros, TimestampBufferMicros tb) void
end()
Completes the log entry.void
endl()
Completes the log entry with a newline.static long
getLevel()
long
nf()
nl()
Notifies us that the log driver has given this instance out as a new entryvoid
Methods inherited from class io.deephaven.io.log.impl.LogOutputBaseImpl
acceptBuffer, clear, close, close, getBuffer, getBufferCount, getEndOfHeaderOffset, markEndOfHeader, relativeSize, size, start
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.io.streams.ByteBufferSink
acceptBuffer, close
Methods inherited from interface io.deephaven.io.log.LogEntry
append, append, append, append, append, appendDouble, appendDouble, appendDouble
Methods inherited from interface io.deephaven.base.log.LogOutput
clear, close, getBuffer, getBufferCount, getEndOfHeaderOffset, markEndOfHeader, relativeSize, size, start
-
Constructor Details
-
LogEntryImpl
Constructor- Parameters:
bufferPool
- where we get our buffers
-
-
Method Details
-
getDifferenceInStartToEnds
public static long getDifferenceInStartToEnds() -
start
Notifies us that the log driver has given this instance out as a new entry -
start
-
start
-
end
public void end()Description copied from interface:LogEntry
Completes the log entry. Callers should not usethis
after completion. End orLogEntry.endl()
should be called exactly once. -
endl
public void endl()Description copied from interface:LogEntry
Completes the log entry with a newline. Callers should not usethis
after completion. Endl orLogEntry.end()
should be called exactly once. -
getTimestampMicros
public long getTimestampMicros()- Specified by:
getTimestampMicros
in interfaceLogSink.Element
-
getLevel
- Specified by:
getLevel
in interfaceLogSink.Element
-
getThrowable
- Specified by:
getThrowable
in interfaceLogSink.Element
-
writing
- Specified by:
writing
in interfaceLogSink.Element
-
written
- Specified by:
written
in interfaceLogSink.Element
-
append
-
append
-
append
-
append
-
append
-
appendDouble
- Specified by:
appendDouble
in interfaceLogEntry
- Specified by:
appendDouble
in interfaceLogOutput
- Overrides:
appendDouble
in classLogOutputCsvImpl
-
append
-
append
-
append
-
append
public <T> LogEntry append(LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) -
append
-
append
-
append
-
append
Description copied from interface:LogOutput
Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer. -
appendTimestamp
- Specified by:
appendTimestamp
in interfaceLogEntry
- Specified by:
appendTimestamp
in interfaceLogOutput
- Overrides:
appendTimestamp
in classLogOutputCsvImpl
-
appendTimestampMicros
- Specified by:
appendTimestampMicros
in interfaceLogEntry
- Specified by:
appendTimestampMicros
in interfaceLogOutput
- Overrides:
appendTimestampMicros
in classLogOutputCsvImpl
-
append
-
append
-
append
-
append
-
nf
-
nl
-