IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.als
Class BufferManager

java.lang.Object
  extended by com.ibm.websphere.als.BufferManager
All Implemented Interfaces:
ApplicationListener, ServletInvocationListener, java.util.EventListener

public class BufferManager
extends java.lang.Object
implements ApplicationListener, ServletInvocationListener


Constructor Summary
BufferManager(javax.servlet.ServletContext sc, Logger l, int maxEntries)
           
 
Method Summary
 void flush()
           
 Logger getLogger()
           
 int getSize()
           
 void log(LogRecord rec)
           
 void onApplicationAvailableForService(ApplicationEvent evt)
          Triggered when the application is activated to receive external requests.
 void onApplicationEnd(ApplicationEvent evt)
          Final application event that occurs before the application is terminated by the server process.
 void onApplicationStart(ApplicationEvent evt)
          Triggered when the application is started.
 void onApplicationUnavailableForService(ApplicationEvent evt)
          Triggered when the application is taken offline.
 void onServletFinishService(ServletInvocationEvent evt)
          Triggered just after the execution of Servlet.service().
 void onServletStartService(ServletInvocationEvent evt)
          Triggered just prior to the execution of Servlet.service().
 void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferManager

public BufferManager(javax.servlet.ServletContext sc,
                     Logger l,
                     int maxEntries)
Method Detail

log

public void log(LogRecord rec)
         throws java.lang.Exception
Throws:
java.lang.Exception

flush

public void flush()
           throws java.lang.Exception
Throws:
java.lang.Exception

getLogger

public Logger getLogger()

onApplicationAvailableForService

public void onApplicationAvailableForService(ApplicationEvent evt)
Description copied from interface: ApplicationListener
Triggered when the application is activated to receive external requests.

Specified by:
onApplicationAvailableForService in interface ApplicationListener

onApplicationStart

public void onApplicationStart(ApplicationEvent evt)
Description copied from interface: ApplicationListener
Triggered when the application is started. This event is triggered before any object initializations occur within the application (including auto-start servlet initialization). This method is the perfect place for applications to register for other events and to setup the application before any other objects are created by the application.

Specified by:
onApplicationStart in interface ApplicationListener

onApplicationUnavailableForService

public void onApplicationUnavailableForService(ApplicationEvent evt)
Description copied from interface: ApplicationListener
Triggered when the application is taken offline. When an application is taken offline, all requests to the application will be denied.

Specified by:
onApplicationUnavailableForService in interface ApplicationListener

onApplicationEnd

public void onApplicationEnd(ApplicationEvent evt)
Description copied from interface: ApplicationListener
Final application event that occurs before the application is terminated by the server process.

Specified by:
onApplicationEnd in interface ApplicationListener

onServletStartService

public void onServletStartService(ServletInvocationEvent evt)
Description copied from interface: ServletInvocationListener
Triggered just prior to the execution of Servlet.service().

Specified by:
onServletStartService in interface ServletInvocationListener
See Also:
javax.servlet.service

onServletFinishService

public void onServletFinishService(ServletInvocationEvent evt)
Description copied from interface: ServletInvocationListener
Triggered just after the execution of Servlet.service().

Specified by:
onServletFinishService in interface ServletInvocationListener
See Also:
javax.servlet.service

terminate

public void terminate()

getSize

public int getSize()

IBM WebSphere Application ServerTM
Release 7