Package io.deephaven.io.log.impl
Class DelayedLogEntryImpl
- java.lang.Object
-
- io.deephaven.io.log.impl.DelayedLogEntryImpl
-
- All Implemented Interfaces:
io.deephaven.base.log.LogOutput,LogEntry,LogSink.Element
public class DelayedLogEntryImpl extends java.lang.Object implements LogEntry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.deephaven.io.log.LogEntry
LogEntry.Null
-
Nested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
io.deephaven.base.log.LogOutput.LongFormatter, io.deephaven.base.log.LogOutput.ObjFormatter<T extends java.lang.Object>, io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T extends java.lang.Object>, io.deephaven.base.log.LogOutput.ObjObjFormatter<T extends java.lang.Object,U extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from interface io.deephaven.base.log.LogOutput
APPENDABLE_COLLECTION_FORMATTER, BASIC_FORMATTER, BOOLEAN_ARRAY_FORMATTER, INT_ARRAY_FORMATTER, LOCAL_DATE_TIME_FORMATTER, MILLIS_FROM_EPOCH_FORMATTER, millisFormatter, NULL_TERMINATED_STRING_FORMATTER, SOCKADDR_FORMATTER, STRING_ARRAY_FORMATTER, STRING_COLLECTION_FORMATTER
-
-
Constructor Summary
Constructors Constructor Description DelayedLogEntryImpl(LoggerTimeSource timeSource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LogEntryappend(boolean b)LogEntryappend(byte[] ba)LogEntryappend(byte[] ba, byte terminator)LogEntryappend(byte[] ba, int pos, int length)LogEntryappend(char c)LogEntryappend(int i)LogEntryappend(long l)LogEntryappend(short s)LogEntryappend(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>
LogEntryappend(io.deephaven.base.log.LogOutput.ObjObjFormatter<T,U> objObjFormatter, T t, U u)LogEntryappend(io.deephaven.base.log.LogOutputAppendable appendable)LogEntryappend(java.lang.CharSequence seq)LogEntryappend(java.lang.CharSequence seq, int start, int length)LogEntryappend(java.lang.Throwable t)LogEntryappend(java.nio.ByteBuffer bb)LogEntryappendDouble(double f)LogEntryappendTimestamp(long utcMillis, io.deephaven.base.text.TimestampBuffer tb)LogEntryappendTimestampMicros(long utcMicros, io.deephaven.base.text.TimestampBufferMicros tb)LogEntryclear()io.deephaven.base.log.LogOutputclose()LogEntryend()LogEntryendl()java.nio.ByteBuffergetBuffer(int i)intgetBufferCount()static longgetDifferenceInStartToEnds()intgetEndOfHeaderOffset()LogLevelgetLevel()java.lang.ThrowablegetThrowable()longgetTimestampMicros()io.deephaven.base.log.LogOutputmarkEndOfHeader()LogEntrynf()LogEntrynl()intrelativeSize()intsize()io.deephaven.base.log.LogOutputstart()LogEntrystart(LogSink sink, LogLevel level)Notifies us that the log driver has given this instance out as a new entryLogEntrystart(LogSink sink, LogLevel level, long currentTimeMicros)LogEntrystart(LogSink sink, LogLevel level, long currentTimeMicros, java.lang.Throwable t)io.deephaven.base.log.LogOutputwriting(io.deephaven.base.log.LogOutput outputBuffer)voidwritten(io.deephaven.base.log.LogOutput outputBuffer)-
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.log.LogEntry
append, append, append, append, append, appendDouble, appendDouble, appendDouble
-
-
-
-
Constructor Detail
-
DelayedLogEntryImpl
public DelayedLogEntryImpl(LoggerTimeSource timeSource)
-
-
Method Detail
-
getDifferenceInStartToEnds
public static long getDifferenceInStartToEnds()
-
markEndOfHeader
public io.deephaven.base.log.LogOutput markEndOfHeader()
- Specified by:
markEndOfHeaderin interfaceio.deephaven.base.log.LogOutput
-
getEndOfHeaderOffset
public int getEndOfHeaderOffset()
- Specified by:
getEndOfHeaderOffsetin interfaceio.deephaven.base.log.LogOutput
-
start
public LogEntry start(LogSink sink, LogLevel level)
Notifies us that the log driver has given this instance out as a new entry
-
start
public LogEntry start(LogSink sink, LogLevel level, long currentTimeMicros, java.lang.Throwable t)
-
getTimestampMicros
public long getTimestampMicros()
- Specified by:
getTimestampMicrosin interfaceLogSink.Element
-
getLevel
public LogLevel getLevel()
- Specified by:
getLevelin interfaceLogSink.Element
-
getThrowable
public java.lang.Throwable 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
public LogEntry append(boolean b)
-
append
public LogEntry append(char c)
-
append
public LogEntry append(short s)
-
append
public LogEntry append(int i)
-
append
public LogEntry append(long l)
-
appendDouble
public LogEntry appendDouble(double f)
- Specified by:
appendDoublein interfaceLogEntry- Specified by:
appendDoublein interfaceio.deephaven.base.log.LogOutput
-
append
public LogEntry append(io.deephaven.base.log.LogOutputAppendable appendable)
-
append
public LogEntry append(io.deephaven.base.log.LogOutput.LongFormatter formatter, long n)
-
append
public <T> LogEntry append(io.deephaven.base.log.LogOutput.ObjFormatter<T> objFormatter, T t)
-
append
public <T> LogEntry append(io.deephaven.base.log.LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength)
-
append
public <T,U> LogEntry append(io.deephaven.base.log.LogOutput.ObjObjFormatter<T,U> objObjFormatter, T t, U u)
-
append
public LogEntry append(java.lang.CharSequence seq)
-
append
public LogEntry append(java.lang.CharSequence seq, int start, int length)
-
append
public LogEntry append(java.nio.ByteBuffer bb)
-
appendTimestamp
public LogEntry appendTimestamp(long utcMillis, io.deephaven.base.text.TimestampBuffer tb)
- Specified by:
appendTimestampin interfaceLogEntry- Specified by:
appendTimestampin interfaceio.deephaven.base.log.LogOutput
-
appendTimestampMicros
public LogEntry appendTimestampMicros(long utcMicros, io.deephaven.base.text.TimestampBufferMicros tb)
- Specified by:
appendTimestampMicrosin interfaceLogEntry- Specified by:
appendTimestampMicrosin interfaceio.deephaven.base.log.LogOutput
-
append
public LogEntry append(java.lang.Throwable t)
-
append
public LogEntry append(byte[] ba)
-
append
public LogEntry append(byte[] ba, int pos, int length)
-
append
public LogEntry append(byte[] ba, byte terminator)
-
nf
public LogEntry nf()
-
nl
public LogEntry nl()
-
relativeSize
public int relativeSize()
- Specified by:
relativeSizein interfaceio.deephaven.base.log.LogOutput
-
start
public io.deephaven.base.log.LogOutput start()
- Specified by:
startin interfaceio.deephaven.base.log.LogOutput
-
close
public io.deephaven.base.log.LogOutput close()
- Specified by:
closein interfaceio.deephaven.base.log.LogOutput
-
size
public int size()
- Specified by:
sizein interfaceio.deephaven.base.log.LogOutput
-
getBufferCount
public int getBufferCount()
- Specified by:
getBufferCountin interfaceio.deephaven.base.log.LogOutput
-
getBuffer
public java.nio.ByteBuffer getBuffer(int i)
- Specified by:
getBufferin interfaceio.deephaven.base.log.LogOutput
-
clear
public LogEntry clear()
- Specified by:
clearin interfaceio.deephaven.base.log.LogOutput
-
-