Пример #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();
 }