类 AbstractLogListener

java.lang.Object
club.xiaojiawei.listener.log.AbstractLogListener
直接已知子类:
DeckLogListener, PowerLogListener, ScreenLogListener

public abstract class AbstractLogListener extends Object
LogListenerConfig.logListener() 添加新的LogListener
  • 字段详细资料

    • listenFileThreadPool

      protected ScheduledThreadPoolExecutor listenFileThreadPool
    • isPause

      protected AtomicReference<javafx.beans.property.BooleanProperty> isPause
    • logDir

      protected static File logDir
    • accessFile

      protected RandomAccessFile accessFile
    • logScheduledFuture

      protected ScheduledFuture<?> logScheduledFuture
    • logFileName

      protected String logFileName
    • listenInitialDelay

      protected long listenInitialDelay
    • listenPeriod

      protected long listenPeriod
    • listenTimeUnit

      protected TimeUnit listenTimeUnit
    • nextLogListener

      protected AbstractLogListener nextLogListener
  • 构造器详细资料

    • AbstractLogListener

      public AbstractLogListener(String logFileName, long listenInitialDelay, long listenPeriod, TimeUnit listenTimeUnit)
  • 方法详细资料

    • setNextLogListener

      public AbstractLogListener setNextLogListener(AbstractLogListener nextLogListener)
    • readOldLog

      protected abstract void readOldLog() throws Exception
      抛出:
      Exception
    • listenLog

      protected abstract void listenLog() throws Exception
      抛出:
      Exception
    • otherListen

      protected void otherListen()
    • cancelOtherListener

      protected void cancelOtherListener()
    • listen

      public void listen()
    • cancelListener

      public void cancelListener()