Java Doc for CachingPointProcessingPipeline.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » components » pipeline » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » apache lenya 2.0 » org.apache.cocoon.components.pipeline.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
   org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
      org.apache.cocoon.components.pipeline.impl.CachingPointProcessingPipeline

CachingPointProcessingPipeline
public class CachingPointProcessingPipeline extends AbstractCachingProcessingPipeline (Code)
The caching-point pipeline implements an extended caching algorithm which is of particular benefit for use with those pipelines that utilise cocoon-views and/or provide drill-down functionality.
since:
   2.1
author:
   Michael Melhem
version:
   CVS $Id: CachingPointProcessingPipeline.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
protected  booleanautoCachingPoint
    
protected  StringautoCachingPointSwitch
    
protected  ArrayListisCachePoint
    
protected  booleannextIsCachePoint
    
protected  ArrayListxmlSerializerArray
    


Method Summary
public  voidaddTransformer(String role, String source, Parameters param, Parameters hintParam)
     Add a transformer.
protected  voidcacheResults(Environment environment, OutputStream os)
     Cache longest cacheable path plus cache points.
protected  voidconnectCachingPipeline(Environment environment)
     Connect the caching point pipeline.
public  voidinformBranchPoint()
     Determine if the given branch-point is a caching-point.
protected  ComponentCacheKeynewComponentCacheKey(int type, String role, Serializable key)
    
public  voidparameterize(Parameters config)
     The CachingPointProcessingPipeline is configurable.

The autoCachingPoint algorithm (if enabled) will automatically cache common elements of the pipeline currently being processed - as well as the entire cacheable pipeline according to the "longest cacheable key" algorithm.

public  voidrecycle()
    
public  voidsetGenerator(String role, String source, Parameters param, Parameters hintParam)
     Set the generator.
 booleansetupFromCacheKey()
    

Field Detail
autoCachingPoint
protected boolean autoCachingPoint(Code)



autoCachingPointSwitch
protected String autoCachingPointSwitch(Code)



isCachePoint
protected ArrayList isCachePoint(Code)



nextIsCachePoint
protected boolean nextIsCachePoint(Code)



xmlSerializerArray
protected ArrayList xmlSerializerArray(Code)





Method Detail
addTransformer
public void addTransformer(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code)
Add a transformer.



cacheResults
protected void cacheResults(Environment environment, OutputStream os) throws Exception(Code)
Cache longest cacheable path plus cache points.



connectCachingPipeline
protected void connectCachingPipeline(Environment environment) throws ProcessingException(Code)
Connect the caching point pipeline.



informBranchPoint
public void informBranchPoint()(Code)
Determine if the given branch-point is a caching-point. This is called by sitemap components when using cocoon views; it is also called by parent nodes (mainly selectors and actions). Please Note: this method is used by auto caching-point and is of no consequence when auto caching-point is switched off
See Also:   org.apache.cocoon.components.treeprocessor.SimpleParentProcessingNode



newComponentCacheKey
protected ComponentCacheKey newComponentCacheKey(int type, String role, Serializable key)(Code)
Create a new ComponentCachekey ComponentCacheKeys can be flagged as cachepoints



parameterize
public void parameterize(Parameters config) throws ParameterException(Code)
The CachingPointProcessingPipeline is configurable.

The autoCachingPoint algorithm (if enabled) will automatically cache common elements of the pipeline currently being processed - as well as the entire cacheable pipeline according to the "longest cacheable key" algorithm. This feature is especially useful for pipelines that branch at some point (this is the case with <map:select> or <map:act>).

The option autoCachingPoint can be switched on/off in the sitemap.xmap (on by default). For linear pipelines, one can switch "Off" autoCachingPoint and use attribute pipeline-hints="caching-point" to manually indicate that certain pipeline components (eg on <map:generator>) should be considered as cache points. Both options (automatic at branch points and manual with pipeline hints) can coexist in the same pipeline.

Works by requesting the pipeline processor to try shorter keys when looking for a cached content for the pipeline.




recycle
public void recycle()(Code)
Recyclable Interface



setGenerator
public void setGenerator(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code)
Set the generator.



setupFromCacheKey
boolean setupFromCacheKey()(Code)



Fields inherited from org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
final public static String PIPELOCK_PREFIX(Code)(Java Doc)
protected boolean cacheCompleteResponse(Code)(Java Doc)
protected CachedResponse cachedResponse(Code)(Java Doc)
protected boolean completeResponseIsCached(Code)(Java Doc)
protected int firstNotCacheableTransformerIndex(Code)(Java Doc)
protected int firstProcessedTransformerIndex(Code)(Java Doc)
protected PipelineCacheKey fromCacheKey(Code)(Java Doc)
protected boolean generatorIsCacheableProcessingComponent(Code)(Java Doc)
protected String generatorRole(Code)(Java Doc)
protected String readerRole(Code)(Java Doc)
protected boolean serializerIsCacheableProcessingComponent(Code)(Java Doc)
protected String serializerRole(Code)(Java Doc)
protected PipelineCacheKey toCacheKey(Code)(Java Doc)
protected SourceValidity[] toCacheSourceValidities(Code)(Java Doc)
protected boolean[] transformerIsCacheableProcessingComponent(Code)(Java Doc)
protected ArrayList transformerRoles(Code)(Java Doc)
protected Store transientStore(Code)(Java Doc)

Methods inherited from org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
public void addTransformer(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code)(Java Doc)
abstract protected void cacheResults(Environment environment, OutputStream os) throws Exception(Code)(Java Doc)
abstract protected void connectCachingPipeline(Environment environment) throws ProcessingException(Code)(Java Doc)
protected void connectPipeline(Environment environment) throws ProcessingException(Code)(Java Doc)
protected void generateCachingKey(Environment environment) throws ProcessingException(Code)(Java Doc)
protected boolean generateLock(Object key)(Code)(Java Doc)
public String getKeyForEventPipeline()(Code)(Java Doc)
public SourceValidity getValidityForEventPipeline()(Code)(Java Doc)
SourceValidity getValidityForInternalPipeline(int index)(Code)(Java Doc)
abstract protected ComponentCacheKey newComponentCacheKey(int type, String role, Serializable key)(Code)(Java Doc)
public void parameterize(Parameters params) throws ParameterException(Code)(Java Doc)
protected boolean processReader(Environment environment) throws ProcessingException(Code)(Java Doc)
protected boolean processXMLPipeline(Environment environment) throws ProcessingException(Code)(Java Doc)
public void recycle()(Code)(Java Doc)
protected boolean releaseLock(Object key)(Code)(Java Doc)
public void setGenerator(String role, String source, Parameters param, Parameters hintParam) throws ProcessingException(Code)(Java Doc)
public void setReader(String role, String source, Parameters param, String mimeType) throws ProcessingException(Code)(Java Doc)
public void setSerializer(String role, String source, Parameters param, Parameters hintParam, String mimeType) throws ProcessingException(Code)(Java Doc)
boolean setupFromCacheKey()(Code)(Java Doc)
protected void setupPipeline(Environment environment) throws ProcessingException(Code)(Java Doc)
protected void setupValidities() throws ProcessingException(Code)(Java Doc)
protected void validatePipeline(Environment environment) throws ProcessingException(Code)(Java Doc)
protected boolean waitForLock(Object key)(Code)(Java Doc)

Fields inherited from org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
protected Cache cache(Code)(Java Doc)
protected XMLDeserializer xmlDeserializer(Code)(Java Doc)
protected XMLSerializer xmlSerializer(Code)(Java Doc)

Methods inherited from org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
public void dispose()(Code)(Java Doc)
public void parameterize(Parameters params) throws ParameterException(Code)(Java Doc)
public void recycle()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.