Java Doc for RepositoryCacheManager.java in  » Code-Analyzer » apache-ivy » org » apache » ivy » core » cache » 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 » Code Analyzer » apache ivy » org.apache.ivy.core.cache 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.ivy.core.cache.RepositoryCacheManager

All known Subclasses:   org.apache.ivy.core.cache.DefaultRepositoryCacheManager,
RepositoryCacheManager
public interface RepositoryCacheManager (Code)




Method Summary
public  ResolvedModuleRevisioncacheModuleDescriptor(DependencyResolver resolver, ResolvedResource orginalMetadataRef, DependencyDescriptor dd, Artifact requestedMetadataArtifact, ResourceDownloader downloader, CacheMetadataOptions options)
     Caches an original module descriptor.
public  voidclean()
     Cleans the whole cache.
abstract public  ArtifactDownloadReportdownload(Artifact artifact, ArtifactResourceResolver resourceResolver, ResourceDownloader resourceDownloader, CacheDownloadOptions options)
     Downloads an artifact to this cache.
abstract public  ResolvedModuleRevisionfindModuleInCache(DependencyDescriptor dd, CacheMetadataOptions options, String expectedResolver)
    
abstract public  StringgetName()
     Returns the name of the repository cache manager.
abstract public  ArtifactOrigingetSavedArtifactOrigin(Artifact artifact)
     Returns the artifact origin of the given artifact as saved in this cache, or ArtifactOrigin.UNKNOWN if the origin is unknown.
Parameters:
  artifact - the artifact for which the saved artifact origin should be returned.
public  voidoriginalToCachedModuleDescriptor(DependencyResolver resolver, ResolvedResource orginalMetadataRef, Artifact requestedMetadataArtifact, ResolvedModuleRevision rmr, ModuleDescriptorWriter writer)
     Stores a standardized version of an original module descriptor in the cache for later use.
abstract public  voidsaveResolvers(ModuleDescriptor descriptor, String metadataResolverName, String artifactResolverName)
     Saves the information of which resolvers were used to resolve a module (both for metadata and artifact), so that this info can be loaded later (even after a jvm restart) for the use of RepositoryCacheManager.findModuleInCache(DependencyDescriptor,CacheMetadataOptions,String) .



Method Detail
cacheModuleDescriptor
public ResolvedModuleRevision cacheModuleDescriptor(DependencyResolver resolver, ResolvedResource orginalMetadataRef, DependencyDescriptor dd, Artifact requestedMetadataArtifact, ResourceDownloader downloader, CacheMetadataOptions options) throws ParseException(Code)
Caches an original module descriptor.

After this call, the original module descriptor file (with no modification nor conversion) should be available as a local file.


Parameters:
  resolver - the dependency resolver from which the cache request comes from
Parameters:
  orginalMetadataRef - a resolved resource pointing to the remote original module descriptor
Parameters:
  dd - the dependency descriptor for which the module descriptor should be cached
Parameters:
  requestedMetadataArtifact - the module descriptor artifact as requested originally
Parameters:
  downloader - a ResourceDownloader able to download the original module descriptor resource ifrequired by this cache implementation
Parameters:
  options - options to apply to cache this module descriptor a ResolvedModuleRevision representing the local cached module descriptor, ornull if it failed
throws:
  ParseException - if an exception occured while parsing the module descriptor



clean
public void clean()(Code)
Cleans the whole cache.



download
abstract public ArtifactDownloadReport download(Artifact artifact, ArtifactResourceResolver resourceResolver, ResourceDownloader resourceDownloader, CacheDownloadOptions options)(Code)
Downloads an artifact to this cache.
Parameters:
  artifact - the artifact to download
Parameters:
  resourceResolver - a resource resolver to use if the artifact needs to be resolved to a Resource fordownloading
Parameters:
  resourceDownloader - a resource downloader to use if actual download of the resource is needed
Parameters:
  options - a set of options to adjust the download a report indicating how the download was performed



findModuleInCache
abstract public ResolvedModuleRevision findModuleInCache(DependencyDescriptor dd, CacheMetadataOptions options, String expectedResolver)(Code)
Search a module descriptor in cache for a mrid
Parameters:
  dd - the dependency descriptor identifying the module to search
Parameters:
  options - options on how caching should be handled
Parameters:
  expectedResolver - the resolver with which the md in cache must have been resolved to be returned,null if this doesn't matter the ResolvedModuleRevision corresponding to the module found, null if none correcthas been found in cache



getName
abstract public String getName()(Code)
Returns the name of the repository cache manager. the name of the repository cache manager.



getSavedArtifactOrigin
abstract public ArtifactOrigin getSavedArtifactOrigin(Artifact artifact)(Code)
Returns the artifact origin of the given artifact as saved in this cache, or ArtifactOrigin.UNKNOWN if the origin is unknown.
Parameters:
  artifact - the artifact for which the saved artifact origin should be returned. the artifact origin of the given artifact as saved in this cache



originalToCachedModuleDescriptor
public void originalToCachedModuleDescriptor(DependencyResolver resolver, ResolvedResource orginalMetadataRef, Artifact requestedMetadataArtifact, ResolvedModuleRevision rmr, ModuleDescriptorWriter writer)(Code)
Stores a standardized version of an original module descriptor in the cache for later use.
Parameters:
  resolver - the dependency resolver from which the cache request comes from
Parameters:
  orginalMetadataRef - a resolved resource pointing to the remote original module descriptor
Parameters:
  requestedMetadataArtifact - the module descriptor artifact as requested originally
Parameters:
  rmr - the ResolvedModuleRevision representing the local cached module descriptor
Parameters:
  writer - a ModuleDescriptorWriter able to write the module descriptor to a stream.



saveResolvers
abstract public void saveResolvers(ModuleDescriptor descriptor, String metadataResolverName, String artifactResolverName)(Code)
Saves the information of which resolvers were used to resolve a module (both for metadata and artifact), so that this info can be loaded later (even after a jvm restart) for the use of RepositoryCacheManager.findModuleInCache(DependencyDescriptor,CacheMetadataOptions,String) .
Parameters:
  md - the module descriptor resolved
Parameters:
  metadataResolverName - metadata resolver name
Parameters:
  artifactResolverName - artifact resolver name



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