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

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

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

    if (_quercusTimer != null) {
      _quercusTimer.shutdown();
    }
  }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #4
0
 /** Returns true if a precompiled page exists */
 public boolean includeExists(Path path) {
   return _pageManager.precompileExists(path);
 }
Beispiel #5
0
 /*
  * Sets the capacity of the page cache.
  */
 public void setPageCacheSize(int size) {
   _pageManager.setPageCacheSize(size);
 }
Beispiel #6
0
 /*
  * Gets the max size of the page cache.
  */
 public int getPageCacheSize() {
   return _pageManager.getPageCacheSize();
 }
Beispiel #7
0
 /*
  * true if interpreted pages should be used if pages fail to compile.
  */
 public void setCompileFailover(boolean isCompileFailover) {
   _pageManager.setCompileFailover(isCompileFailover);
 }
Beispiel #8
0
 /** Set true if pages should be compiled. */
 public void setLazyCompile(boolean isCompile) {
   _pageManager.setLazyCompile(isCompile);
 }
Beispiel #9
0
 /** true if the pages should be compiled. */
 public boolean isCompile() {
   return _pageManager.isCompile();
 }