Package com.yahoo.search.logging
Class LocalDiskLogger
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.search.logging.LocalDiskLogger
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,Logger
,Comparable<com.yahoo.component.Component>
public class LocalDiskLogger
extends com.yahoo.component.AbstractComponent
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.yahoo.search.logging.AbstractThreadedLogger.WorkerThreadExecutor
Fields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Synchronously shuts down and waits for enqueued entries to be sent.protected void
dequeue
(LoggerEntry entry) protected boolean
enqueue
(LoggerEntry entry) boolean
send
(LoggerEntry entry) boolean
transport
(LoggerEntry entry) Actually transports the entry to its destinationMethods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Field Details
-
executor
protected final com.yahoo.search.logging.AbstractThreadedLogger.WorkerThreadExecutor executor
-
-
Constructor Details
-
LocalDiskLogger
-
-
Method Details
-
transport
Actually transports the entry to its destination -
send
-
enqueue
-
dequeue
-
deconstruct
public void deconstruct()Synchronously shuts down and waits for enqueued entries to be sent.- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-