jrunx.logger
Class BufferLogEventHandler

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrunx.logger.LogEventHandler
                    |
                    +--jrunx.logger.BufferLogEventHandler
All Implemented Interfaces:
ConfigurableServicePartitionMBean, LogEventHandlerMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean

public class BufferLogEventHandler
extends LogEventHandler

Logger used to hold log events. The log events that are buffered are processed by the first log() method called on a LogEventHandler other than a BufferLogEventHandler

Author:
Brian Deitte
See Also:
Serialized Form

Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
BufferLogEventHandler()
           
 
Method Summary
static java.util.ArrayList getEvents()
          Get the list of events that have been added to any BufferLogEventHandlers.
 boolean logEvent(LogEvent event)
          Add log event to the buffer
 
Methods inherited from class jrunx.logger.LogEventHandler
clearBuffer, flush, getFormat, log, setFormat
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroy, destroyServices, init, initServices, loadAndInit, loadChildren, setChildElements, start, startServices, stop, stopServices
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 

Constructor Detail

BufferLogEventHandler

public BufferLogEventHandler()
Method Detail

logEvent

public boolean logEvent(LogEvent event)
Add log event to the buffer
Overrides:
logEvent in class LogEventHandler

getEvents

public static java.util.ArrayList getEvents()
Get the list of events that have been added to any BufferLogEventHandlers. The event list is cleared when this method is called.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.