public class QueueingLogger extends GenericService implements LogListener
GovernorQueue| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
LogListener | 
mFinalLogListener
The underlying LogListener. 
 | 
LoggingQueue | 
mQueue
The logging queue. 
 | 
boolean | 
mQueueing
Whether or not log events should be queued. 
 | 
int | 
mQueueMaxNormalSize
The queue size threshold at which the thread ceases to run at its normal priority and becomes active. 
 | 
int | 
mQueueMinActiveSize
The queue size threshold at which the thread ceases to be active. 
 | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
QueueingLogger()
Constructs an uninitialized QueueingLogger. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
doStartService()
This is called after the service has been created, added to the
 Registry, and configured. 
 | 
void | 
doStopService()
This is called when the service is to be stopped. 
 | 
LogListener | 
getFinalLogListener()
Returns the underlying LogListener to which queued log events are
 being written to. 
 | 
boolean | 
getQueueing()
Returns whether queueing on or off. 
 | 
int | 
getQueueMaxNormalSize()
Returns the queue size threshold at which the thread ceases to
 run at its normal priority and becomes active. 
 | 
int | 
getQueueMinActiveSize()
Returns the queue size threshold at which the thread ceases to be
 active. 
 | 
void | 
logEvent(LogEvent pLogEvent)
Logs the given log event. 
 | 
void | 
setFinalLogListener(LogListener pLogListener)
Sets the underlying LogListener to which queued log events will be
 written to. 
 | 
void | 
setQueueing(boolean pQueueing)
Turn queueing on or off. 
 | 
void | 
setQueueMaxNormalSize(int pQueueMaxNormalSize)
Sets the queue size threshold at which the thread ceases to run
 at its normal priority and becomes active. 
 | 
void | 
setQueueMinActiveSize(int pQueueMinActiveSize)
Sets the queue size threshold at which the thread ceases to be
 active. 
 | 
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic static java.lang.String CLASS_VERSION
public boolean mQueueing
public int mQueueMinActiveSize
public int mQueueMaxNormalSize
public LogListener mFinalLogListener
public LoggingQueue mQueue
public QueueingLogger()
public void setQueueing(boolean pQueueing)
pQueueing - flag if queuing is onpublic void setQueueMinActiveSize(int pQueueMinActiveSize)
pQueueMinActiveSize - the minimum threshholdpublic void setQueueMaxNormalSize(int pQueueMaxNormalSize)
pQueueMaxNormalSize - the maximum threshholdpublic void setFinalLogListener(LogListener pLogListener)
pLogListener - the log listenerpublic boolean getQueueing()
public int getQueueMinActiveSize()
public int getQueueMaxNormalSize()
public LogListener getFinalLogListener()
public void doStartService()
                    throws ServiceException
doStartService in class GenericServiceServiceException - if an error occurred during the operationpublic void doStopService()
                   throws ServiceException
doStopService in class GenericServiceServiceException - if an error occurred during the operationpublic void logEvent(LogEvent pLogEvent)
logEvent in interface LogListenerpLogEvent - the log event