org.apache.jackrabbit.server.io
Class DefaultIOListener

java.lang.Object
  extended by org.apache.jackrabbit.server.io.DefaultIOListener
All Implemented Interfaces:
IOListener

public class DefaultIOListener
extends Object
implements IOListener

DefaultIOListener implements an IOListener that writes debug/error output to the logger specified in the constructor.


Constructor Summary
DefaultIOListener(org.slf4j.Logger ioLog)
          Creates a new DefaultIOListener
 
Method Summary
 void onBegin(IOHandler handler, IOContext ioContext)
          The import/export context has been passed to the given IOHandler
 void onEnd(IOHandler handler, IOContext ioContext, boolean success)
          The specified IOHandler finished.
 void onError(IOHandler ioHandler, IOContext ioContext, Exception e)
          An expection occured during import/export within the specified IOHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIOListener

public DefaultIOListener(org.slf4j.Logger ioLog)
Creates a new DefaultIOListener

Method Detail

onBegin

public void onBegin(IOHandler handler,
                    IOContext ioContext)
Description copied from interface: IOListener
The import/export context has been passed to the given IOHandler

Specified by:
onBegin in interface IOListener
See Also:
IOListener.onBegin(IOHandler, IOContext)

onEnd

public void onEnd(IOHandler handler,
                  IOContext ioContext,
                  boolean success)
Description copied from interface: IOListener
The specified IOHandler finished. A boolean flag indicates whether the handler was able to run the import/export.

Specified by:
onEnd in interface IOListener
See Also:
IOListener.onEnd(IOHandler, IOContext, boolean)

onError

public void onError(IOHandler ioHandler,
                    IOContext ioContext,
                    Exception e)
Description copied from interface: IOListener
An expection occured during import/export within the specified IOHandler.

Specified by:
onError in interface IOListener
See Also:
IOListener.onError(IOHandler, IOContext, Exception)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.