cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject svn commit: r292755 - in /cocoon/blocks/ajax/trunk/samples: display-freememory.xml file-browser-suggest.xml file-browser.xml sitemap.xmap
Date Fri, 30 Sep 2005 14:45:11 GMT
Author: sylvain
Date: Fri Sep 30 07:45:07 2005
New Revision: 292755

URL: http://svn.apache.org/viewcvs?rev=292755&view=rev
Log:
Just for fun, add a live memory monitor in the filebrowser page

Added:
    cocoon/blocks/ajax/trunk/samples/display-freememory.xml   (with props)
Removed:
    cocoon/blocks/ajax/trunk/samples/file-browser-suggest.xml
Modified:
    cocoon/blocks/ajax/trunk/samples/file-browser.xml
    cocoon/blocks/ajax/trunk/samples/sitemap.xmap

Added: cocoon/blocks/ajax/trunk/samples/display-freememory.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/ajax/trunk/samples/display-freememory.xml?rev=292755&view=auto
==============================================================================
--- cocoon/blocks/ajax/trunk/samples/display-freememory.xml (added)
+++ cocoon/blocks/ajax/trunk/samples/display-freememory.xml Fri Sep 30 07:45:07 2005
@@ -0,0 +1,3 @@
+<span xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+  ${java.lang.Runtime.getRuntime().freeMemory()}
+</span>
\ No newline at end of file

Propchange: cocoon/blocks/ajax/trunk/samples/display-freememory.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/ajax/trunk/samples/display-freememory.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: cocoon/blocks/ajax/trunk/samples/file-browser.xml
URL: http://svn.apache.org/viewcvs/cocoon/blocks/ajax/trunk/samples/file-browser.xml?rev=292755&r1=292754&r2=292755&view=diff
==============================================================================
--- cocoon/blocks/ajax/trunk/samples/file-browser.xml (original)
+++ cocoon/blocks/ajax/trunk/samples/file-browser.xml Fri Sep 30 07:45:07 2005
@@ -39,5 +39,10 @@
   
   <p><em>Note: there's no submit button on this form as we don't really care
about actually using
          that information...</em></p>
+         
+  <p>Free memory: <span id="freemem"></span></p>
+  <script type="text/javascript">
+    new Ajax.PeriodicalUpdater('freemem', 'display-freememory', {});
+  </script>
 </content>
 </page>

Modified: cocoon/blocks/ajax/trunk/samples/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/ajax/trunk/samples/sitemap.xmap?rev=292755&r1=292754&r2=292755&view=diff
==============================================================================
--- cocoon/blocks/ajax/trunk/samples/sitemap.xmap (original)
+++ cocoon/blocks/ajax/trunk/samples/sitemap.xmap Fri Sep 30 07:45:07 2005
@@ -67,6 +67,11 @@
        <map:serialize type="xml"/>
      </map:match>
      
+     <map:match pattern="display-freememory">
+       <map:generate type="jx" src="display-freememory.xml"/>
+       <map:serialize type="xml"/>
+     </map:match>
+     
      <!-- Generic pipeline to load resources in jars -->
      <map:match pattern="resources/*/**">
        <map:read src="resource://org/apache/cocoon/{1}/resources/{2}"/>



Mime
View raw message