net.sf.jour.rt.agent
Class AsyncEventLogger

java.lang.Object
  extended bynet.sf.jour.rt.agent.AsyncEventLogger
All Implemented Interfaces:
EventLogger, ShutdownListener

public class AsyncEventLogger
extends java.lang.Object
implements EventLogger, ShutdownListener

Store events in the multiple Queues per Thread. Queues are responsible for storing events. Created on 02.12.2004 Contributing Author(s): Misha Lifschitz (Inital implementation) Vlad Skarzhevskyy (Inital implementation)

Version:
$Revision: 1.7 $ ($Author: vlads $) $Date: 2004/12/16 06:28:17 $
Author:
vlads

Field Summary
static int DEFAULT_BUFFER_SIZE
          The default buffer size is set to 128 events.
(package private) static java.util.Hashtable ht
           
protected static org.apache.log4j.Logger log
           
static boolean profileitself
           
 
Constructor Summary
AsyncEventLogger()
          Creates a new EventMTQueueLogger object.
 
Method Summary
 void close()
           
 void close(java.lang.Thread key)
          Close the Queue for this thread.
 void closeAll()
           
 void logEvent(Event event)
          DOCUMENT ME!
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

ht

static java.util.Hashtable ht

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
The default buffer size is set to 128 events.

See Also:
Constant Field Values

profileitself

public static final boolean profileitself
See Also:
Constant Field Values
Constructor Detail

AsyncEventLogger

public AsyncEventLogger()
Creates a new EventMTQueueLogger object.

Method Detail

logEvent

public void logEvent(Event event)
DOCUMENT ME!

Specified by:
logEvent in interface EventLogger
Parameters:
event - DOCUMENT ME!

close

public void close()
Specified by:
close in interface EventLogger

close

public void close(java.lang.Thread key)
Close the Queue for this thread.


shutdown

public void shutdown()
Specified by:
shutdown in interface ShutdownListener

closeAll

public void closeAll()


Copyright © 2004 sourceforge. All Rights Reserved.