cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r811546 - in /cocoon/cocoon3/trunk/cocoon-sample/src/main: java/org/apache/cocoon/sample/generation/CachingTimestampGenerator.java resources/COB-INF/sitemap.xmap
Date Fri, 04 Sep 2009 20:55:44 GMT
Author: reinhard
Date: Fri Sep  4 20:55:43 2009
New Revision: 811546

URL: http://svn.apache.org/viewvc?rev=811546&view=rev
Log:
COCOON3-39 Cache overview via JMX

Modified:
    cocoon/cocoon3/trunk/cocoon-sample/src/main/java/org/apache/cocoon/sample/generation/CachingTimestampGenerator.java
    cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap

Modified: cocoon/cocoon3/trunk/cocoon-sample/src/main/java/org/apache/cocoon/sample/generation/CachingTimestampGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample/src/main/java/org/apache/cocoon/sample/generation/CachingTimestampGenerator.java?rev=811546&r1=811545&r2=811546&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample/src/main/java/org/apache/cocoon/sample/generation/CachingTimestampGenerator.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sample/src/main/java/org/apache/cocoon/sample/generation/CachingTimestampGenerator.java
Fri Sep  4 20:55:43 2009
@@ -16,6 +16,7 @@
  */
 package org.apache.cocoon.sample.generation;
 
+import org.apache.cocoon.pipeline.caching.AbstractCacheKey;
 import org.apache.cocoon.pipeline.caching.CacheKey;
 import org.apache.cocoon.pipeline.component.CachingPipelineComponent;
 
@@ -27,7 +28,7 @@
         return new CacheKeyImplementation(System.currentTimeMillis());
     }
 
-    private final class CacheKeyImplementation implements CacheKey {
+    private final class CacheKeyImplementation extends AbstractCacheKey {
 
         private static final long serialVersionUID = 1L;
         private final long timestamp;

Modified: cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap?rev=811546&r1=811545&r2=811546&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap (original)
+++ cocoon/cocoon3/trunk/cocoon-sample/src/main/resources/COB-INF/sitemap.xmap Fri Sep  4
20:55:43 2009
@@ -23,7 +23,7 @@
 
   <map:pipelines>
     <!-- ~~~~~~~~~~~~~~~~ map:read ~~~~~~~~~~~~~~~ -->
-    <map:pipeline>
+    <map:pipeline jmx-group-name="read">
       <map:match pattern="">
         <map:read src="overview.html" />
       </map:match>
@@ -39,7 +39,7 @@
     </map:pipeline>
 
     <!-- ~~~~~~~~~~~~~~~~ sax pipelines ~~~~~~~~~~~~~~~ -->
-    <map:pipeline>
+    <map:pipeline jmx-group-name="sax">
       <map:match equals="sax-pipeline/simple">
         <map:generate src="sax-pipeline/simple.xml" />
         <map:transform src="sax-pipeline/simple.xslt">
@@ -73,21 +73,21 @@
     </map:pipeline>
 
     <!-- ~~~~~~~~~~~~~~~~ caching of pipelines ~~~~~~~~~~~~~~~ -->
-    <map:pipeline>
+    <map:pipeline jmx-group-name="timestamp-caching">
       <map:match pattern="caching-pipeline/on">
         <map:generate type="timestamp-caching" />
         <map:serialize type="xml" />
       </map:match>
     </map:pipeline>
     
-    <map:pipeline type="async-caching">
+    <map:pipeline type="async-caching" jmx-group-name="async-caching">
       <map:match pattern="async-caching-pipeline/on">
         <map:generate type="timestamp-caching" />
         <map:serialize type="xml" />
       </map:match>
     </map:pipeline>
 
-    <map:pipeline type="noncaching">
+    <map:pipeline type="noncaching" jmx-group-name="nocaching">
       <map:match pattern="caching-pipeline/off">
         <map:generate type="timestamp-caching" />
         <map:serialize type="xml" />
@@ -116,7 +116,7 @@
     </map:pipeline>    
 
     <!-- ~~~~~~~~~~~~~~~~ servlet service framework ~~~~~~~~~~~~~~~ -->
-    <map:pipeline>
+    <map:pipeline jmx-group-name="servlet-service">
       <map:match pattern="ssf/local">
         <map:generate src="servlet:/sax-pipeline/simple-xml" />
         <map:serialize type="xml" />



Mime
View raw message