atg.nucleus.logging
Class LogListenerQueue

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.service.queue.EventQueue
              extended by atg.nucleus.logging.LogListenerQueue
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, LogListener, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class LogListenerQueue
extends EventQueue
implements LogListener

This is a queueing version of the interface atg.nucleus.logging.LogListener. Calls made to this class are queued, then passed on to the listeners of this interface

This class was generated automatically by atg.service.queue.EventQueueGenerator using the command java atg.service.queue.EventQueueGenerator atg.nucleus.logging.LogListener atg.nucleus.logging LogListenerQueue atg.service.queue.EventQueue


Field Summary
static java.lang.String CLASS_VERSION
           
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
LogListenerQueue()
           
 
Method Summary
 void addLogListener(LogListener pListener)
          Adds a listener to the list of log listeners
protected  EventQueueElement createElement()
          Constructs a new blank EventQueueElement.
protected  void dispatchElement(EventQueueElement pElem)
          Dispatches a Queue element to be handled.
 int getLogListenerCount()
          Returns the number of log listeners
 LogListener[] getLogListeners()
          Returns the list of log listeners as an array property.
 void logEvent(LogEvent arg0)
          Logs the given log event.
 void removeLogListener(LogListener pListener)
          Removes a listener from the list of log listeners
 
Methods inherited from class atg.service.queue.EventQueue
addElement, dispatchQueueElements, doStartService, doStopService, flushQueue, getElement, getInitialCapacity, getQueuedEventCount, getQueueHead, getQueueSize, getThreadCount, getTransactionManager, getTransactionsEnabled, handleDispatchError, listQueuedElements, setInitialCapacity, setThreadCount, setTransactionManager, setTransactionsEnabled
 
Methods inherited from class atg.nucleus.GenericService
createAdminServlet, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

LogListenerQueue

public LogListenerQueue()
Method Detail

createElement

protected EventQueueElement createElement()
Description copied from class: EventQueue
Constructs a new blank EventQueueElement. Subclasses must implement this method.

Specified by:
createElement in class EventQueue

addLogListener

public void addLogListener(LogListener pListener)
Description copied from class: GenericService
Adds a listener to the list of log listeners

Specified by:
addLogListener in interface atg.nucleus.logging.ApplicationLoggingSender
Overrides:
addLogListener in class GenericService

removeLogListener

public void removeLogListener(LogListener pListener)
Description copied from class: GenericService
Removes a listener from the list of log listeners

Specified by:
removeLogListener in interface atg.nucleus.logging.ApplicationLoggingSender
Overrides:
removeLogListener in class GenericService

getLogListenerCount

public int getLogListenerCount()
Description copied from class: GenericService
Returns the number of log listeners

Specified by:
getLogListenerCount in interface atg.nucleus.logging.ApplicationLoggingSender
Overrides:
getLogListenerCount in class GenericService

getLogListeners

public LogListener[] getLogListeners()
Description copied from class: GenericService
Returns the list of log listeners as an array property.

Specified by:
getLogListeners in interface atg.nucleus.logging.ApplicationLoggingSender
Overrides:
getLogListeners in class GenericService

logEvent

public void logEvent(LogEvent arg0)
Description copied from interface: LogListener
Logs the given log event.

Specified by:
logEvent in interface LogListener
Parameters:
arg0 - the log event

dispatchElement

protected void dispatchElement(EventQueueElement pElem)
Description copied from class: EventQueue
Dispatches a Queue element to be handled. Subclasses must implement this method.

Specified by:
dispatchElement in class EventQueue