org.exist.xquery
Class XQueryWatchDog
java.lang.Object
org.exist.xquery.XQueryWatchDog
public class XQueryWatchDog
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIGURATION_ELEMENT_NAME
public static final java.lang.String CONFIGURATION_ELEMENT_NAME
- See Also:
- Constant Field Values
PROPERTY_QUERY_TIMEOUT
public static final java.lang.String PROPERTY_QUERY_TIMEOUT
- See Also:
- Constant Field Values
PROPERTY_OUTPUT_SIZE_LIMIT
public static final java.lang.String PROPERTY_OUTPUT_SIZE_LIMIT
- See Also:
- Constant Field Values
XQueryWatchDog
public XQueryWatchDog(XQueryContext context)
setTimeoutFromOption
public void setTimeoutFromOption(Option option)
throws XPathException
- Throws:
XPathException
setMaxNodes
public void setMaxNodes(int maxNodes)
setMaxNodesFromOption
public void setMaxNodesFromOption(Option option)
throws XPathException
- Throws:
XPathException
proceed
public void proceed(Expression expr)
throws TerminatedException
- Throws:
TerminatedException
proceed
public void proceed(Expression expr,
MemTreeBuilder builder)
throws TerminatedException
- Throws:
TerminatedException
cleanUp
public void cleanUp()
kill
public void kill(long waitTime)
getContext
public XQueryContext getContext()
getStartTime
public long getStartTime()
reset
public void reset()
isTerminating
public boolean isTerminating()