Package com.illumon.intradaylogger
Class IntradayLoggerImpl2<T extends WritableRowContainer>
java.lang.Object
com.illumon.intradaylogger.IntradayLoggerImpl2<T>
- All Implemented Interfaces:
IntradayLogger
- Direct Known Subclasses:
AuditEventLogFormat3Logger,BarrageSnapshotPerformanceLogger,BarrageSubscriptionPerformanceLogger,BlackScholesFormat1Logger,ProcessEventLogFormat2Logger,ProcessEventLogIndexLogger,ProcessMetricsFormat1Logger,ProcessTelemetryFormat1Logger,ProcessTelemetryIndexLogger,QueryOperationPerformanceLogCommunityIndexFormat1Logger,QueryOperationPerformanceLogCoreV2IndexFormat1Logger,QueryOperationPerformanceLogFormat3Logger,QueryOperationPerformanceLogIndexLogger,QueryPerformanceLogCommunityIndexFormat1Logger,QueryPerformanceLogCoreV2IndexFormat1Logger,QueryPerformanceLogFormat2Logger,QueryPerformanceLogIndexLogger,ServerStateLogCommunityIndexFormat1Logger,ServerStateLogCoreV2IndexFormat1Logger,UpdatePerformanceAncestorsIndexFormat1Logger,UpdatePerformanceLogCommunityIndexFormat1Logger,UpdatePerformanceLogCoreV2IndexFormat1Logger,UpdatePerformanceLogFormat4Logger,UpdatePerformanceLogIndexLogger,WorkspaceDataFormat1Logger
@Deprecated
public abstract class IntradayLoggerImpl2<T extends WritableRowContainer>
extends Object
implements IntradayLogger
Deprecated.
Common parts of the generated IntradayLoggers.
It is "2" so that we can change the implementation details from IntradayLoggerImpl; and existing client code will
still compile. Otherwise, there is a chicken and egg problem, with clients not being able to run the
new IntradayLoggerFactory using modules that contain their logger classes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassIntradayLoggerImpl2.BaseSetter<T2 extends IntradayLoggerImpl2<T>.BaseSetter<T2>>Deprecated.Nested classes/interfaces inherited from interface com.illumon.intradaylogger.IntradayLogger
IntradayLogger.TableWriterFactory, IntradayLogger.TableWriterFactoryImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDeprecated.protected booleanDeprecated.protected booleanDeprecated.protected final AtomicIntegerDeprecated.Deprecated.protected booleanDeprecated.protected TableWriterDeprecated.Fields inherited from interface com.illumon.intradaylogger.IntradayLogger
DEFAULT_INTRADAY_LOGGER_FLAGS -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.IntradayLoggerImpl2(String namespace, String tablename) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()Deprecated.Close the logger and any writer in use.protected abstract TDeprecated.final voidDeprecated.Disable verification of the checksum.protected final voidDeprecated.protected abstract TableWritergetTableWriter(IntradayLogger.TableWriterFactory tableWriterBuilder) Deprecated.final ThreadDeprecated.Get theThreadthat is responsible for writing data from this logger, i.e.final voidinit(IntradayLogger.TableWriterFactory tableWriterBuilder, int queueSize) Deprecated.final voidinit(IntradayLogger.TableWriterFactory tableWriterBuilder, int queueSize, @Nullable Thread sharedWriterThread) Deprecated.final voidDeprecated.final voidDeprecated.final booleanisClosed()Deprecated.protected final booleanDeprecated.voidsetOverflowThrottle(long throttleMillis) Deprecated.If the throttle is set to >= 0, then a pool and queue will be used that allows overflow.final voidDeprecated.Indicates that the logger cannot access Deephaven services.final voidshutdown()Deprecated.Write all enqueued elements to theTableWriterand prevent further writes.protected abstract StringDeprecated.final booleantryWrite()Deprecated.Attempt to write a single row to theTableWritercreated using theIntradayLogger.TableWriterFactory.protected abstract voidDeprecated.protected final voidverifyCondition(boolean condition, String message) Deprecated.Check the condition and throw an IllegalStateException if it is not met.final voidwaitDone()Deprecated.Wait for all currently populated rows to be written to storage.final booleanwaitDone(long millis) Deprecated.Block until output queue is empty, logger isclosed, or timeout expires.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.intradaylogger.IntradayLogger
getLogFormat, usingDynamicPartitioning
-
Field Details
-
writer
Deprecated. -
setterPool
Deprecated. -
isClosed
protected volatile boolean isClosedDeprecated. -
isShuttingDown
protected volatile boolean isShuttingDownDeprecated. -
outstandingSetters
Deprecated. -
verifyChecksumDisabled
protected boolean verifyChecksumDisabledDeprecated. -
forceStandaloneMode
protected boolean forceStandaloneModeDeprecated.
-
-
Constructor Details
-
IntradayLoggerImpl2
public IntradayLoggerImpl2()Deprecated. -
IntradayLoggerImpl2
Deprecated.
-
-
Method Details
-
init
Deprecated.- Specified by:
initin interfaceIntradayLogger- Throws:
IOException
-
init
Deprecated.- Specified by:
initin interfaceIntradayLogger- Throws:
IOException
-
init
public final void init(IntradayLogger.TableWriterFactory tableWriterBuilder, int queueSize) throws IOException Deprecated.- Specified by:
initin interfaceIntradayLogger- Throws:
IOException
-
setOverflowThrottle
public void setOverflowThrottle(long throttleMillis) Deprecated.Description copied from interface:IntradayLoggerIf the throttle is set to >= 0, then a pool and queue will be used that allows overflow. The overflowing will be throttled by a wait of this amount of time.- Specified by:
setOverflowThrottlein interfaceIntradayLogger- Parameters:
throttleMillis- milliseconds to wait before allocating new setters
-
init
public final void init(IntradayLogger.TableWriterFactory tableWriterBuilder, int queueSize, @Nullable @Nullable Thread sharedWriterThread) throws IOException Deprecated.- Specified by:
initin interfaceIntradayLogger- Throws:
IOException
-
createSetter
Deprecated. -
verifyChecksum
Deprecated.- Throws:
IOException
-
getTableWriter
protected abstract TableWriter getTableWriter(IntradayLogger.TableWriterFactory tableWriterBuilder) throws IOException Deprecated.- Throws:
IOException
-
threadName
Deprecated. -
disableVerifyChecksum
public final void disableVerifyChecksum()Deprecated.Disable verification of the checksum. -
setStandaloneMode
public final void setStandaloneMode()Deprecated.Indicates that the logger cannot access Deephaven services. -
isInitialized
protected final boolean isInitialized()Deprecated. -
verifyCondition
Deprecated.Check the condition and throw an IllegalStateException if it is not met.- Parameters:
condition- the condition to checkmessage- useful information for the IllegalStateException- Throws:
IllegalStateException- if the condition is false
-
shutdown
public final void shutdown()Deprecated.Description copied from interface:IntradayLoggerWrite all enqueued elements to theTableWriterand prevent further writes. This should be invoked beforeIntradayLogger.close(). This must not be invoked if any threads might still try to log additional items.- Specified by:
shutdownin interfaceIntradayLogger
-
flush
Deprecated. -
waitDone
public final void waitDone()Deprecated.Wait for all currently populated rows to be written to storage.- Specified by:
waitDonein interfaceIntradayLogger
-
waitDone
public final boolean waitDone(long millis) Deprecated.Description copied from interface:IntradayLoggerBlock until output queue is empty, logger isclosed, or timeout expires.- Specified by:
waitDonein interfaceIntradayLogger- Parameters:
millis- How long to wait, in milliseconds- Returns:
- True if the output queue is empty and the logger closed, else false (e.g. because the timeout expired)
-
close
Deprecated.Description copied from interface:IntradayLoggerClose the logger and any writer in use. Users should quiesce all logging threads and invokeIntradayLogger.shutdown()first in order to guarantee that all pending rows have been written to storage.- Specified by:
closein interfaceIntradayLogger- Throws:
IOException- if an error occurred closing the logger.
-
isClosed
public final boolean isClosed()Deprecated.- Specified by:
isClosedin interfaceIntradayLogger
-
tryWrite
Deprecated.Description copied from interface:IntradayLoggerAttempt to write a single row to the
TableWritercreated using theIntradayLogger.TableWriterFactory.Implementation Note: "written" simply means that the
TableWriteraccepted the write request. It may internally buffer the row.- Specified by:
tryWritein interfaceIntradayLogger- Returns:
- true if a row was written, false otherwise.
- Throws:
IOException- if an error occurred during the write.
-
getWriterThread
Deprecated.Description copied from interface:IntradayLoggerGet theThreadthat is responsible for writing data from this logger, i.e. the unique thread assigned to callIntradayLogger.tryWrite(). This will return null if invoked before one of theIntradayLogger.init(java.lang.String, int)overloads.- Specified by:
getWriterThreadin interfaceIntradayLogger- Returns:
- The writer
Threadfor this logger, or null ifIntradayLogger.init(java.lang.String, int)hasn't been invoked yet
-