Class ListenerLogDelegator

  • All Implemented Interfaces:
    ReplicationLog

    public class ListenerLogDelegator
    extends java.lang.Object
    implements ReplicationLog
    ListenerLogDelegator implements a replication log that also sends the messages to the listener
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String message)
      Log a message with level debug.
      void debug​(java.lang.String fmt, java.lang.Object... args)
      Log a message with level debug.
      void error​(java.lang.String message)
      Log a message with level error.
      void error​(java.lang.String fmt, java.lang.Object... args)
      Log a message with level error.
      ReplicationLog.Level getLevel()
      Returns the log level of this log
      java.util.Collection<java.lang.String> getLines()
      Returns the lines
      void info​(java.lang.String message)
      Log a message with level info.
      void info​(java.lang.String fmt, java.lang.Object... args)
      Log a message with level info.
      void setLevel​(ReplicationLog.Level level)
      Set the log level
      void warn​(java.lang.String message)
      Log a message with level warn.
      void warn​(java.lang.String fmt, java.lang.Object... args)
      Log a message with level warn.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLines

        public java.util.Collection<java.lang.String> getLines()
        Description copied from interface: ReplicationLog
        Returns the lines
        Specified by:
        getLines in interface ReplicationLog
        Returns:
        the lines.
      • debug

        public void debug​(java.lang.String message)
        Description copied from interface: ReplicationLog
        Log a message with level debug.
        Specified by:
        debug in interface ReplicationLog
        Parameters:
        message - the log message
      • debug

        public void debug​(java.lang.String fmt,
                          java.lang.Object... args)
        Description copied from interface: ReplicationLog
        Log a message with level debug.
        Specified by:
        debug in interface ReplicationLog
        Parameters:
        fmt - the message format
        args - the message arguments
        See Also:
        String.format(String, Object...)
      • info

        public void info​(java.lang.String message)
        Description copied from interface: ReplicationLog
        Log a message with level info.
        Specified by:
        info in interface ReplicationLog
        Parameters:
        message - the log message
      • info

        public void info​(java.lang.String fmt,
                         java.lang.Object... args)
        Description copied from interface: ReplicationLog
        Log a message with level info.
        Specified by:
        info in interface ReplicationLog
        Parameters:
        fmt - the message format
        args - the message arguments
        See Also:
        String.format(String, Object...)
      • warn

        public void warn​(java.lang.String message)
        Description copied from interface: ReplicationLog
        Log a message with level warn.
        Specified by:
        warn in interface ReplicationLog
        Parameters:
        message - the log message
      • warn

        public void warn​(java.lang.String fmt,
                         java.lang.Object... args)
        Description copied from interface: ReplicationLog
        Log a message with level warn.
        Specified by:
        warn in interface ReplicationLog
        Parameters:
        fmt - the message format
        args - the message arguments
        See Also:
        String.format(String, Object...)
      • error

        public void error​(java.lang.String message)
        Description copied from interface: ReplicationLog
        Log a message with level error.
        Specified by:
        error in interface ReplicationLog
        Parameters:
        message - the log message
      • error

        public void error​(java.lang.String fmt,
                          java.lang.Object... args)
        Description copied from interface: ReplicationLog
        Log a message with level error.
        Specified by:
        error in interface ReplicationLog
        Parameters:
        fmt - the message format
        args - the message arguments
        See Also:
        String.format(String, Object...)