org.codehaus.spice.netserve.connection.impl
Class AvalonAcceptorMonitor

java.lang.Object
  extended byorg.codehaus.spice.netserve.connection.impl.AbstractLoggingAcceptorMonitor
      extended byorg.codehaus.spice.netserve.connection.impl.AvalonAcceptorMonitor
All Implemented Interfaces:
AcceptorMonitor

public class AvalonAcceptorMonitor
extends AbstractLoggingAcceptorMonitor

AcceptorMonitor that writes out messages to Avalon Logger.


Constructor Summary
AvalonAcceptorMonitor(org.apache.avalon.framework.logger.Logger logger)
          Create AcceptorMonitor that writes to Avalon Logger.
 
Method Summary
protected  void debug(String message)
          Write out debug message.
protected  org.apache.avalon.framework.logger.Logger getLogger()
          Return the logger.
protected  void info(String message)
          Write out info message.
protected  boolean isDebugEnabled()
          Return true if debug logging enabled.
protected  void warn(String message, Exception e)
          Write out warn message.
 
Methods inherited from class org.codehaus.spice.netserve.connection.impl.AbstractLoggingAcceptorMonitor
acceptorClosing, acceptorCreated, errorAcceptingConnection, errorClosingServerSocket, serverSocketListening
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvalonAcceptorMonitor

public AvalonAcceptorMonitor(org.apache.avalon.framework.logger.Logger logger)
Create AcceptorMonitor that writes to Avalon Logger.

Parameters:
logger - the logger
Method Detail

isDebugEnabled

protected boolean isDebugEnabled()
Description copied from class: AbstractLoggingAcceptorMonitor
Return true if debug logging enabled.

Specified by:
isDebugEnabled in class AbstractLoggingAcceptorMonitor
Returns:
true if debug logging enabled.
See Also:
AbstractLoggingAcceptorMonitor.isDebugEnabled()

debug

protected void debug(String message)
Description copied from class: AbstractLoggingAcceptorMonitor
Write out debug message.

Specified by:
debug in class AbstractLoggingAcceptorMonitor
Parameters:
message - the message
See Also:
AbstractLoggingAcceptorMonitor.debug(java.lang.String)

info

protected void info(String message)
Description copied from class: AbstractLoggingAcceptorMonitor
Write out info message.

Specified by:
info in class AbstractLoggingAcceptorMonitor
Parameters:
message - the message
See Also:
AbstractLoggingAcceptorMonitor.info(java.lang.String)

warn

protected void warn(String message,
                    Exception e)
Description copied from class: AbstractLoggingAcceptorMonitor
Write out warn message.

Specified by:
warn in class AbstractLoggingAcceptorMonitor
Parameters:
message - the message
e - the warnings cause
See Also:
AbstractLoggingAcceptorMonitor.warn(java.lang.String, java.lang.Exception)

getLogger

protected org.apache.avalon.framework.logger.Logger getLogger()
Return the logger.

Returns:
the logger


Copyright © 1999-2004 Codehaus. All Rights Reserved.