Package org.apache.jackrabbit.server.io
Class DefaultIOListener
- java.lang.Object
-
- org.apache.jackrabbit.server.io.DefaultIOListener
-
- All Implemented Interfaces:
IOListener
public class DefaultIOListener extends Object implements IOListener
DefaultIOListener
implements anIOListener
that writes debug/error output to thelogger
specified in the constructor.
-
-
Constructor Summary
Constructors Constructor Description DefaultIOListener(org.slf4j.Logger ioLog)
Creates a newDefaultIOListener
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBegin(IOHandler handler, IOContext ioContext)
The import/export context has been passed to the givenIOHandler
.void
onEnd(IOHandler handler, IOContext ioContext, boolean success)
The specifiedIOHandler
finished.void
onError(IOHandler ioHandler, IOContext ioContext, Exception e)
An exception occurred during import/export within the specifiedIOHandler
.
-
-
-
Method Detail
-
onBegin
public void onBegin(IOHandler handler, IOContext ioContext)
Description copied from interface:IOListener
The import/export context has been passed to the givenIOHandler
.- Specified by:
onBegin
in interfaceIOListener
- See Also:
IOListener.onBegin(IOHandler, IOContext)
-
onEnd
public void onEnd(IOHandler handler, IOContext ioContext, boolean success)
Description copied from interface:IOListener
The specifiedIOHandler
finished. A boolean flag indicates whether the handler was able to run the import/export.- Specified by:
onEnd
in interfaceIOListener
- See Also:
IOListener.onEnd(IOHandler, IOContext, boolean)
-
onError
public void onError(IOHandler ioHandler, IOContext ioContext, Exception e)
Description copied from interface:IOListener
An exception occurred during import/export within the specifiedIOHandler
.- Specified by:
onError
in interfaceIOListener
- See Also:
IOListener.onError(IOHandler, IOContext, Exception)
-
-