de.fhg.igd.logging
Interface Forwarder

All Known Implementing Classes:
URLAppender, URLHandler

public interface Forwarder

This interface is supposed to be implemented by classes that forward log messages to be dispatched either synchronously or by usage of Asynchronous Message Dispatching. In case of configuration changes, the internal message buffer size (and hereby the dispatching mechanism) can be updated dynamically through this interface.

Version:
"$Id: Forwarder.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Matthias Pressfreund

Method Summary
 Integer getBufferSize()
          Get the size of the internal message buffer.
 URL getOutputDestination()
          Get the output destination URL.
 void updateBufferSize(Integer buffersize)
          Update the size of the internal message buffer.
 

Method Detail

getOutputDestination

public URL getOutputDestination()
Get the output destination URL.

Returns:
The output destination

getBufferSize

public Integer getBufferSize()
Get the size of the internal message buffer. For buffer sizes greater than zero, messages are dispatched asynchronously.

Returns:
The internal message buffer size

updateBufferSize

public void updateBufferSize(Integer buffersize)
Update the size of the internal message buffer. For buffer sizes greater than zero, messages will be dispatched asynchronously.

Parameters:
buffersize - The new size of the internal message buffer
Throws:
LoggingException - in case updating the message buffer size failed


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.