Class CrawlerCache

java.lang.Object
io.emop.javadocjson.parser.CrawlerCache

public class CrawlerCache extends Object
Cache management class for the Javadoc crawler.
  • Constructor Details

    • CrawlerCache

      public CrawlerCache(org.apache.maven.plugin.logging.Log log, boolean enableCache, String cacheDir)
  • Method Details

    • isCached

      public boolean isCached(String className)
      Checks if a class is already cached.
      Parameters:
      className - The name of the class to check
      Returns:
      true if the class is cached, false otherwise
    • markAsCached

      public void markAsCached(JavadocClass javadocClass)
      Marks a class as cached and stores the JavadocClass object.
      Parameters:
      javadocClass - The JavadocClass object to cache
    • getCachedClass

      public JavadocClass getCachedClass(String className)
      Gets a cached JavadocClass object from the cache.
      Parameters:
      className - The name of the class to retrieve
      Returns:
      The cached JavadocClass object, or null if not found or error occurred
    • getCacheStats

      public String getCacheStats()
      Gets cache statistics as a formatted string.
      Returns:
      Cache statistics string