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

    Fields
    Modifier and Type
    Field
    Description
    protected final com.yahoo.search.logging.AbstractThreadedLogger.WorkerThreadExecutor
     

    Fields inherited from class com.yahoo.component.AbstractComponent

    isDeconstructable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Synchronously shuts down and waits for enqueued entries to be sent.
    protected void
     
    protected boolean
     
    boolean
     
    boolean
    Actually transports the entry to its destination

    Methods inherited from class com.yahoo.component.AbstractComponent

    clone, compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.yahoo.search.logging.Logger

    newEntry
  • Field Details

    • executor

      protected final com.yahoo.search.logging.AbstractThreadedLogger.WorkerThreadExecutor executor
  • Constructor Details

  • Method Details

    • transport

      public boolean transport(LoggerEntry entry)
      Actually transports the entry to its destination
    • send

      public boolean send(LoggerEntry entry)
      Specified by:
      send in interface Logger
    • enqueue

      protected boolean enqueue(LoggerEntry entry)
    • dequeue

      protected void dequeue(LoggerEntry entry)
    • deconstruct

      public void deconstruct()
      Synchronously shuts down and waits for enqueued entries to be sent.
      Specified by:
      deconstruct in interface com.yahoo.component.Deconstructable
      Overrides:
      deconstruct in class com.yahoo.component.AbstractComponent