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
FieldsModifier and TypeFieldDescriptionprotected final com.yahoo.search.logging.AbstractThreadedLogger.WorkerThreadExecutorFields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSynchronously shuts down and waits for enqueued entries to be sent.protected voiddequeue(LoggerEntry entry) protected booleanenqueue(LoggerEntry entry) booleansend(LoggerEntry entry) booleantransport(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:
deconstructin interfacecom.yahoo.component.Deconstructable- Overrides:
deconstructin classcom.yahoo.component.AbstractComponent
-