You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Paul Smith <Pa...@lawlex.com.au> on 2003/05/28 09:44:32 UTC
RE: cvs commit: jakarta-log4j-sandbox/tests/src/java/org/apache/l
og4j/chainsaw CyclicBufferListTest.java
> -----Original Message-----
> From: Ceki Gülcü [mailto:ceki@qos.ch]
> Sent: Wednesday, 28 May 2003 5:46 PM
> To: Log4J Developers List
> Subject: Re: cvs commit:
> jakarta-log4j-sandbox/tests/src/java/org/apache/log4j/chainsaw
> CyclicBufferListTest.java
>
>
>
> I am thrilled to see progress on the table model.
>
> As for the CyclicBuffer you could use two cascading cyclic
> buffers. One buffer for storing events as they arrive and a second one
> for the events retained after filtering. The gui table would only use
> the second table to display events. The first one is used only as a
> cache to repopulate the second buffer when the filtering rules
> change. Does it make sense?
We do! ::
class ChainsawCyclicBufferTableModel extends AbstractChainsawTableModel
implements EventContainer {
public static final int DEFAULT_BUFFER_SIZE = 500;
List cyclicBufferList = new CyclicBufferList(DEFAULT_BUFFER_SIZE);
List filteredList = new CyclicBufferList(DEFAULT_BUFFER_SIZE);
(Unless you mean something else...)
cheers,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org
RE: cvs commit:
jakarta-log4j-sandbox/tests/src/java/org/apache/l og4j/chainsaw
CyclicBufferListTest.java
Posted by Ceki Gülcü <ce...@qos.ch>.
At 05:44 PM 5/28/2003 +1000, Paul Smith wrote:
>We do! ::
>
>class ChainsawCyclicBufferTableModel extends AbstractChainsawTableModel
> implements EventContainer {
> public static final int DEFAULT_BUFFER_SIZE = 500;
> List cyclicBufferList = new CyclicBufferList(DEFAULT_BUFFER_SIZE);
> List filteredList = new CyclicBufferList(DEFAULT_BUFFER_SIZE);
No that's exactly it. I should have looked at the code first. :-)
>cheers,
>
>Paul
--
Ceki For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org