⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _cache__jsp.java

📁 JSP聊天系统
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
      pageContext.write(_jsp_string23, 0, _jsp_string23.length);
      out.print(( DbCacheManager.THREAD_CACHE ));
      pageContext.write(_jsp_string29, 0, _jsp_string29.length);
      out.print(( cache.getMaxSize()/1024 ));
      pageContext.write(_jsp_string25, 0, _jsp_string25.length);
      	} 
      pageContext.write(_jsp_string26, 0, _jsp_string26.length);
      out.print(( DbCacheManager.FORUM_CACHE ));
      pageContext.write(_jsp_string27, 0, _jsp_string27.length);
       cache = cacheManager.getCache(DbCacheManager.FORUM_CACHE); 
      pageContext.write(_jsp_string30, 0, _jsp_string30.length);
       
			memUsed = (double)cache.getSize()/(1024*1024);
			totalMem = (double)cache.getMaxSize()/(1024*1024);
			freeMem = 100 - 100*memUsed/totalMem;
		
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
      out.print(( formatter.format(totalMem) ));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      out.print(( formatter.format(freeMem)));
      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
      out.print(( cache.getNumElements() ));
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
       
			hits = cache.getCacheHits();
			misses = cache.getCacheMisses();
			if (hits + misses == 0) { hitPercent = 0.0; }
			else { hitPercent = 100*(double)hits/(hits+misses); }
		
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      out.print(( formatter.format(hitPercent)));
      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print(( hits ));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);
      out.print(( misses ));
      pageContext.write(_jsp_string20, 0, _jsp_string20.length);
      out.print(( DbCacheManager.FORUM_CACHE ));
      pageContext.write(_jsp_string21, 0, _jsp_string21.length);
      out.print(( DbCacheManager.FORUM_CACHE ));
      pageContext.write(_jsp_string22, 0, _jsp_string22.length);
      	if( doEdit && cacheID==DbCacheManager.FORUM_CACHE ) { 
      pageContext.write(_jsp_string23, 0, _jsp_string23.length);
      out.print(( DbCacheManager.FORUM_CACHE ));
      pageContext.write(_jsp_string29, 0, _jsp_string29.length);
      out.print(( cache.getMaxSize()/1024 ));
      pageContext.write(_jsp_string25, 0, _jsp_string25.length);
      	} 
      pageContext.write(_jsp_string26, 0, _jsp_string26.length);
      out.print(( DbCacheManager.USER_CACHE ));
      pageContext.write(_jsp_string27, 0, _jsp_string27.length);
       cache = cacheManager.getCache(DbCacheManager.USER_CACHE); 
      pageContext.write(_jsp_string31, 0, _jsp_string31.length);
       
			memUsed = (double)cache.getSize()/(1024*1024);
			totalMem = (double)cache.getMaxSize()/(1024*1024);
			freeMem = 100 - 100*memUsed/totalMem;
		
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
      out.print(( formatter.format(totalMem) ));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      out.print(( formatter.format(freeMem)));
      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
      out.print(( cache.getNumElements() ));
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
       
			hits = cache.getCacheHits();
			misses = cache.getCacheMisses();
			if (hits + misses == 0) { hitPercent = 0.0; }
			else { hitPercent = 100*(double)hits/(hits+misses); }
		
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      out.print(( formatter.format(hitPercent)));
      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print(( hits ));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);
      out.print(( misses ));
      pageContext.write(_jsp_string20, 0, _jsp_string20.length);
      out.print(( DbCacheManager.USER_CACHE ));
      pageContext.write(_jsp_string21, 0, _jsp_string21.length);
      out.print(( DbCacheManager.USER_CACHE ));
      pageContext.write(_jsp_string22, 0, _jsp_string22.length);
      	if( doEdit && cacheID==DbCacheManager.USER_CACHE ) { 
      pageContext.write(_jsp_string23, 0, _jsp_string23.length);
      out.print(( DbCacheManager.USER_CACHE ));
      pageContext.write(_jsp_string29, 0, _jsp_string29.length);
      out.print(( cache.getMaxSize()/1024 ));
      pageContext.write(_jsp_string25, 0, _jsp_string25.length);
      	} 
      pageContext.write(_jsp_string26, 0, _jsp_string26.length);
      out.print(( DbCacheManager.GROUP_CACHE ));
      pageContext.write(_jsp_string27, 0, _jsp_string27.length);
       cache = cacheManager.getCache(DbCacheManager.GROUP_CACHE); 
      pageContext.write(_jsp_string32, 0, _jsp_string32.length);
       
			memUsed = (double)cache.getSize()/(1024*1024);
			totalMem = (double)cache.getMaxSize()/(1024*1024);
			freeMem = 100 - 100*memUsed/totalMem;
		
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
      out.print(( formatter.format(totalMem) ));
      pageContext.write(_jsp_string14, 0, _jsp_string14.length);
      out.print(( formatter.format(freeMem)));
      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
      out.print(( cache.getNumElements() ));
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
       
			hits = cache.getCacheHits();
			misses = cache.getCacheMisses();
			if (hits + misses == 0) { hitPercent = 0.0; }
			else { hitPercent = 100*(double)hits/(hits+misses); }
		
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      out.print(( formatter.format(hitPercent)));
      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print(( hits ));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);
      out.print(( misses ));
      pageContext.write(_jsp_string20, 0, _jsp_string20.length);
      out.print(( DbCacheManager.GROUP_CACHE ));
      pageContext.write(_jsp_string21, 0, _jsp_string21.length);
      out.print(( DbCacheManager.GROUP_CACHE ));
      pageContext.write(_jsp_string22, 0, _jsp_string22.length);
      	if( doEdit && cacheID==DbCacheManager.GROUP_CACHE ) { 
      pageContext.write(_jsp_string23, 0, _jsp_string23.length);
      out.print(( DbCacheManager.GROUP_CACHE ));
      pageContext.write(_jsp_string29, 0, _jsp_string29.length);
      out.print(( cache.getMaxSize()/1024 ));
      pageContext.write(_jsp_string25, 0, _jsp_string25.length);
      	} 
      pageContext.write(_jsp_string33, 0, _jsp_string33.length);
         
		double freeMemory = (double)runtime.freeMemory()/(1024*1024);
		double totalMemory = (double)runtime.totalMemory()/(1024*1024);
		double usedMemory = totalMemory - freeMemory;
		double percentFree = ((double)freeMemory/(double)totalMemory)*100.0;
	
      pageContext.write(_jsp_string34, 0, _jsp_string34.length);
      out.print(( formatter.format(usedMemory) ));
      pageContext.write(_jsp_string35, 0, _jsp_string35.length);
      out.print(( formatter.format(totalMemory) ));
      pageContext.write(_jsp_string36, 0, _jsp_string36.length);
      out.print(( percentFree ));
      pageContext.write(_jsp_string37, 0, _jsp_string37.length);
      out.print(( percentFree ));
      pageContext.write(_jsp_string38, 0, _jsp_string38.length);
      out.print(( 100-percentFree ));
      pageContext.write(_jsp_string39, 0, _jsp_string39.length);
      out.print(( formatter.format(percentFree) ));
      pageContext.write(_jsp_string40, 0, _jsp_string40.length);
      	int free = 100-(int)Math.round(percentFree); 
      pageContext.write(_jsp_string41, 0, _jsp_string41.length);
      	int tableWidth = 200; 
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      	int numBlocks = 50; 
      pageContext.write(_jsp_string42, 0, _jsp_string42.length);
      out.print(( tableWidth ));
      pageContext.write(_jsp_string43, 0, _jsp_string43.length);
       for( int i=0; i<numBlocks; i++ ) { 
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      		if( (i*(100/numBlocks)) < free ) { 
      pageContext.write(_jsp_string44, 0, _jsp_string44.length);
      out.print(( (100/numBlocks) ));
      pageContext.write(_jsp_string45, 0, _jsp_string45.length);
      		} else { 
      pageContext.write(_jsp_string46, 0, _jsp_string46.length);
      out.print(( (100/numBlocks) ));
      pageContext.write(_jsp_string45, 0, _jsp_string45.length);
      		} 
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      	} 
      pageContext.write(_jsp_string47, 0, _jsp_string47.length);
      out.print(( formatter.format(percentFree) ));
      pageContext.write(_jsp_string48, 0, _jsp_string48.length);
      out.print(( (cacheEnabled)?" bgcolor=\"#99cc99\"":"" ));
      pageContext.write(_jsp_string49, 0, _jsp_string49.length);
      out.print(( (cacheEnabled)?"checked":"" ));
      pageContext.write(_jsp_string50, 0, _jsp_string50.length);
      out.print(( (cacheEnabled)?"<b>开</b>":"On" ));
      pageContext.write(_jsp_string51, 0, _jsp_string51.length);
      out.print(( (!cacheEnabled)?" bgcolor=\"#cc6666\"":"" ));
      pageContext.write(_jsp_string52, 0, _jsp_string52.length);
      out.print(( (!cacheEnabled)?"checked":"" ));
      pageContext.write(_jsp_string53, 0, _jsp_string53.length);
      out.print(( (!cacheEnabled)?"<b>关</b>":"Off" ));
      pageContext.write(_jsp_string54, 0, _jsp_string54.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

  private com.caucho.java.LineMap _caucho_line_map;
  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 2057024146)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -