com.day.cq.replication
Class ListenerLogDelegator

java.lang.Object
  extended by com.day.cq.replication.ListenerLogDelegator
All Implemented Interfaces:
ReplicationLog

public class ListenerLogDelegator
extends Object
implements ReplicationLog

ListenerLogDelegator implements a replication log that also sends the messages to the listener


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.day.cq.replication.ReplicationLog
ReplicationLog.Level
 
Constructor Summary
ListenerLogDelegator(ReplicationLog log, ReplicationListener listener)
           
 
Method Summary
 void debug(String message)
          Log a message with level debug.
 void debug(String fmt, Object... args)
          Log a message with level debug.
 void error(String message)
          Log a message with level error.
 void error(String fmt, Object... args)
          Log a message with level error.
 ReplicationLog.Level getLevel()
          Returns the log level of this log
 Collection<String> getLines()
          Returns the lines
 void info(String message)
          Log a message with level info.
 void info(String fmt, Object... args)
          Log a message with level info.
 void setLevel(ReplicationLog.Level level)
          Set the log level
 void warn(String message)
          Log a message with level warn.
 void warn(String fmt, Object... args)
          Log a message with level warn.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerLogDelegator

public ListenerLogDelegator(ReplicationLog log,
                            ReplicationListener listener)
Method Detail

getLevel

public ReplicationLog.Level getLevel()
Description copied from interface: ReplicationLog
Returns the log level of this log

Specified by:
getLevel in interface ReplicationLog
Returns:
the log level

setLevel

public void setLevel(ReplicationLog.Level level)
Description copied from interface: ReplicationLog
Set the log level

Specified by:
setLevel in interface ReplicationLog
Parameters:
level - the log level

getLines

public Collection<String> getLines()
Description copied from interface: ReplicationLog
Returns the lines

Specified by:
getLines in interface ReplicationLog
Returns:
the lines.

debug

public void debug(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(String fmt,
                  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(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(String fmt,
                 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(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(String fmt,
                 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(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(String fmt,
                  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...)


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.