org.apache.taglibs.benchmark
Class Duration

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.taglibs.benchmark.Duration
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class Duration
extends javax.servlet.jsp.tagext.BodyTagSupport

A tag handler for the <benchmark:duration> tag, which determines how long it takes to compute its body (minus the sections of its body enclosed in <benchmark:exclude> ... </benchmark:exclude>).

Version:
0.90
Author:
Shawn Bayern
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Duration()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 boolean getOutput()
           
 long getRepeat()
           
 void pauseTimer()
          Temporarily pauses our timer, which must already be running.
 void release()
           
 void restartTimer()
          Restarts our timer, which must already be paused.
 void setOutput(boolean x)
           
 void setRepeat(long x)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

Duration

public Duration()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

pauseTimer

public void pauseTimer()
                throws javax.servlet.jsp.JspTagException
Temporarily pauses our timer, which must already be running.

Throws:
javax.servlet.jsp.JspTagException

restartTimer

public void restartTimer()
                  throws javax.servlet.jsp.JspTagException
Restarts our timer, which must already be paused.

Throws:
javax.servlet.jsp.JspTagException

setRepeat

public void setRepeat(long x)
               throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getRepeat

public long getRepeat()

setOutput

public void setOutput(boolean x)

getOutput

public boolean getOutput()


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.