示例#1
0
  public void close() {
    _isClosed = true;

    _sessionManager.close();
    _pageManager.close();

    if (_envTimeoutThread != null) _envTimeoutThread.shutdown();

    if (_quercusTimer != null) {
      _quercusTimer.shutdown();
    }
  }
示例#2
0
 /**
  * Parses a quercus program.
  *
  * @param path the source file path
  * @return the parsed program
  * @throws IOException
  */
 public QuercusPage parse(Path path, String fileName, int line) throws IOException {
   return _pageManager.parse(path, fileName, line);
 }
示例#3
0
 /**
  * Parses a quercus program.
  *
  * @param path the source file path
  * @return the parsed program
  * @throws IOException
  */
 public QuercusPage parse(Path path) throws IOException {
   return _pageManager.parse(path);
 }
示例#4
0
 /** Returns true if a precompiled page exists */
 public boolean includeExists(Path path) {
   return _pageManager.precompileExists(path);
 }
示例#5
0
 /*
  * Sets the capacity of the page cache.
  */
 public void setPageCacheSize(int size) {
   _pageManager.setPageCacheSize(size);
 }
示例#6
0
 /*
  * Gets the max size of the page cache.
  */
 public int getPageCacheSize() {
   return _pageManager.getPageCacheSize();
 }
示例#7
0
 /*
  * true if interpreted pages should be used if pages fail to compile.
  */
 public void setCompileFailover(boolean isCompileFailover) {
   _pageManager.setCompileFailover(isCompileFailover);
 }
示例#8
0
 /** Set true if pages should be compiled. */
 public void setLazyCompile(boolean isCompile) {
   _pageManager.setLazyCompile(isCompile);
 }
示例#9
0
 /** true if the pages should be compiled. */
 public boolean isCompile() {
   return _pageManager.isCompile();
 }