Class AbstractSpoolingLogger

java.lang.Object
com.yahoo.search.logging.AbstractSpoolingLogger
All Implemented Interfaces:
Logger, Runnable

public abstract class AbstractSpoolingLogger extends Object implements Runnable
Abstract class that deals with storing event entries on disk and making sure all stored entries are eventually sent
Author:
hmusum
  • Field Details

    • log

      protected static final Logger log
    • spooler

      protected final Spooler spooler
    • executor

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

    • AbstractSpoolingLogger

      public AbstractSpoolingLogger()
    • AbstractSpoolingLogger

      public AbstractSpoolingLogger(Spooler spooler)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • send

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

      public void shutdown()
    • enqueue

      protected boolean enqueue(LoggerEntry entry)
    • dequeue

      protected void dequeue(LoggerEntry entry)
    • transport

      public abstract boolean transport(LoggerEntry entry)
      Actually transports the entry to it's destination