org.apache.taglibs.benchmark
Class Duration

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.apache.taglibs.benchmark.Duration
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, 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

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_TAG
 
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()
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport

pauseTimer

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

restartTimer

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

setRepeat

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

getRepeat

public long getRepeat()

setOutput

public void setOutput(boolean x)

getOutput

public boolean getOutput()


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.