예제 #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();
 }