org.tigris.scarab.pipeline
Class TimingInfoValve
java.lang.Object
org.apache.turbine.pipeline.AbstractValve
org.tigris.scarab.pipeline.TimingInfoValve
- All Implemented Interfaces:
- org.apache.turbine.Valve
- public class TimingInfoValve
- extends org.apache.turbine.pipeline.AbstractValve
This valve stores the system time in the request object on first invocation
and reports the elapsed time on later invocations. It generally would be
set as the first and last valve in a pipeline. This valve also sets a
large response buffer, so that timing results are those of the server.
This will actually make the system appear slower to clients so it should
not be used in a production system. You need to compile this valve
with DEBUG=true for it to be functional.
- Version:
- $Id: TimingInfoValve.java 9255 2004-11-14 21:07:04Z dep4b $
- Author:
- John McNally
|
Method Summary |
void |
initialize()
|
void |
invoke(org.apache.turbine.RunData data,
org.apache.turbine.ValveContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimingInfoValve
public TimingInfoValve()
initialize
public void initialize()
throws java.lang.Exception
- Throws:
java.lang.Exception
invoke
public void invoke(org.apache.turbine.RunData data,
org.apache.turbine.ValveContext context)
throws java.io.IOException,
org.apache.turbine.TurbineException
- Throws:
java.io.IOException
org.apache.turbine.TurbineException- See Also:
Valve.invoke(RunData, ValveContext)
Copyright © 2000-2004 Tigris.org. All Rights Reserved.