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:
io.deephaven.base.log.LogOutput,LogEntry,LogSink.Element,ByteBufferSink
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.io.log.LogEntry
LogEntry.NullNested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
io.deephaven.base.log.LogOutput.LongFormatter, io.deephaven.base.log.LogOutput.Null, io.deephaven.base.log.LogOutput.ObjFormatter<T extends Object>, io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T extends Object>, io.deephaven.base.log.LogOutput.ObjObjFormatter<T extends Object,U extends Object> -
Field Summary
Fields inherited from class io.deephaven.io.log.impl.LogOutputCsvImpl
lineSeparatorFields inherited from class io.deephaven.io.log.impl.LogOutputBaseImpl
streamFields 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(io.deephaven.base.log.LogOutput.LongFormatter formatter, long n) <T> LogEntryappend(io.deephaven.base.log.LogOutput.ObjFormatter<T> objFormatter, T t) <T> LogEntryappend(io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) <T,U> LogEntry append(io.deephaven.base.log.LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) append(io.deephaven.base.log.LogOutputAppendable appendable) append(CharSequence seq) append(CharSequence seq, int start, int length) append(ByteBuffer bb) appendDouble(double f) appendTimestamp(long utcMillis, io.deephaven.base.text.TimestampBuffer tb) appendTimestampMicros(long utcMicros, io.deephaven.base.text.TimestampBufferMicros tb) voidend()Completes the log entry.voidendl()Completes the log entry with a newline.static longgetLevel()longnf()nl()Notifies us that the log driver has given this instance out as a new entryio.deephaven.base.log.LogOutputwriting(io.deephaven.base.log.LogOutput outputBuffer) voidwritten(io.deephaven.base.log.LogOutput outputBuffer) Methods inherited from class io.deephaven.io.log.impl.LogOutputBaseImpl
acceptBuffer, clear, close, close, getBuffer, getBufferCount, getEndOfHeaderOffset, markEndOfHeader, relativeSize, size, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.io.streams.ByteBufferSink
acceptBuffer, closeMethods inherited from interface io.deephaven.io.log.LogEntry
append, append, append, append, append, appendDouble, appendDouble, appendDoubleMethods 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:LogEntryCompletes the log entry. Callers should not usethisafter completion. End orLogEntry.endl()should be called exactly once. -
endl
public void endl()Description copied from interface:LogEntryCompletes the log entry with a newline. Callers should not usethisafter completion. Endl orLogEntry.end()should be called exactly once. -
getTimestampMicros
public long getTimestampMicros()- Specified by:
getTimestampMicrosin interfaceLogSink.Element
-
getLevel
- Specified by:
getLevelin interfaceLogSink.Element
-
getThrowable
- Specified by:
getThrowablein interfaceLogSink.Element
-
writing
public io.deephaven.base.log.LogOutput writing(io.deephaven.base.log.LogOutput outputBuffer) - Specified by:
writingin interfaceLogSink.Element
-
written
public void written(io.deephaven.base.log.LogOutput outputBuffer) - Specified by:
writtenin interfaceLogSink.Element
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
appendDouble
- Specified by:
appendDoublein interfaceLogEntry- Specified by:
appendDoublein interfaceio.deephaven.base.log.LogOutput- Overrides:
appendDoublein classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
public <T> LogEntry append(io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) - Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
public <T,U> LogEntry append(io.deephaven.base.log.LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) - Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
appendTimestamp
- Specified by:
appendTimestampin interfaceLogEntry- Specified by:
appendTimestampin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendTimestampin classLogOutputCsvImpl
-
appendTimestampMicros
public LogEntry appendTimestampMicros(long utcMicros, io.deephaven.base.text.TimestampBufferMicros tb) - Specified by:
appendTimestampMicrosin interfaceLogEntry- Specified by:
appendTimestampMicrosin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendTimestampMicrosin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
append
- Specified by:
appendin interfaceLogEntry- Specified by:
appendin interfaceio.deephaven.base.log.LogOutput- Overrides:
appendin classLogOutputCsvImpl
-
nf
- Specified by:
nfin interfaceLogEntry- Specified by:
nfin interfaceio.deephaven.base.log.LogOutput- Overrides:
nfin classLogOutputCsvImpl
-
nl
- Specified by:
nlin interfaceLogEntry- Specified by:
nlin interfaceio.deephaven.base.log.LogOutput- Overrides:
nlin classLogOutputCsvImpl
-