org.exist.xquery
Class XQueryWatchDog
java.lang.Object
org.exist.xquery.XQueryWatchDog
public class XQueryWatchDog
- extends Object
- Author:
- wolf
CONFIGURATION_ELEMENT_NAME
public static final String CONFIGURATION_ELEMENT_NAME
- See Also:
- Constant Field Values
PROPERTY_QUERY_TIMEOUT
public static final String PROPERTY_QUERY_TIMEOUT
- See Also:
- Constant Field Values
PROPERTY_OUTPUT_SIZE_LIMIT
public static final 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()
Copyright (C) Wolfgang Meier. All rights reserved.