test_class.file: oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/search/ExtractedTextCacheTest.java
test_class.identifier: ExtractedTextCacheTest
test_case.body: @Test
      public void cacheDisabling() throws Exception {
          ExtractedTextCache cache = new ExtractedTextCache(0, 0);
          assertNull(cache.getCacheStats());
      }
test_case.class_method_signature: ExtractedTextCacheTest.cacheDisabling()
test_case.full_signature: @Test public void cacheDisabling()
test_case.identifier: cacheDisabling
test_case.invocations: assertNull getCacheStats
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void cacheDisabling()
focal_class.declarator: CACHE_ONLY_SUCCESS =
              Boolean.getBoolean("oak.extracted.cacheOnlySuccess")
focal_class.modifier: private static final
focal_class.original_string: private static final boolean CACHE_ONLY_SUCCESS =
              Boolean.getBoolean("oak.extracted.cacheOnlySuccess");
focal_class.type: boolean
focal_class.var_name: CACHE_ONLY_SUCCESS
focal_class.declarator: EXTRACTION_TIMEOUT_SECONDS =
              Integer.getInteger("oak.extraction.timeoutSeconds", 60)
focal_class.modifier: private static final
focal_class.original_string: private static final int EXTRACTION_TIMEOUT_SECONDS =
              Integer.getInteger("oak.extraction.timeoutSeconds", 60);
focal_class.type: int
focal_class.var_name: EXTRACTION_TIMEOUT_SECONDS
focal_class.declarator: EXTRACTION_MAX_THREADS =
              Integer.getInteger("oak.extraction.maxThreads", 10)
focal_class.modifier: private static final
focal_class.original_string: private static final int EXTRACTION_MAX_THREADS =
              Integer.getInteger("oak.extraction.maxThreads", 10);
focal_class.type: int
focal_class.var_name: EXTRACTION_MAX_THREADS
focal_class.declarator: EXTRACT_IN_CALLER_THREAD =
              Boolean.getBoolean("oak.extraction.inCallerThread")
focal_class.modifier: private static final
focal_class.original_string: private static final boolean EXTRACT_IN_CALLER_THREAD =
              Boolean.getBoolean("oak.extraction.inCallerThread");
focal_class.type: boolean
focal_class.var_name: EXTRACT_IN_CALLER_THREAD
focal_class.declarator: EXTRACT_FORGET_TIMEOUT =
              Boolean.getBoolean("oak.extraction.forgetTimeout")
focal_class.modifier: private static final
focal_class.original_string: private static final boolean EXTRACT_FORGET_TIMEOUT =
              Boolean.getBoolean("oak.extraction.forgetTimeout");
focal_class.type: boolean
focal_class.var_name: EXTRACT_FORGET_TIMEOUT
focal_class.declarator: TIMEOUT_MAP = "textExtractionTimeout.properties"
focal_class.modifier: private static final
focal_class.original_string: private static final String TIMEOUT_MAP = "textExtractionTimeout.properties";
focal_class.type: String
focal_class.var_name: TIMEOUT_MAP
focal_class.declarator: EMPTY_STRING = ""
focal_class.modifier: private static final
focal_class.original_string: private static final String EMPTY_STRING = "";
focal_class.type: String
focal_class.var_name: EMPTY_STRING
focal_class.declarator: log = LoggerFactory.getLogger(ExtractedTextCache.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(ExtractedTextCache.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: extractedTextProvider
focal_class.modifier: private volatile
focal_class.original_string: private volatile PreExtractedTextProvider extractedTextProvider;
focal_class.type: PreExtractedTextProvider
focal_class.var_name: extractedTextProvider
focal_class.declarator: textExtractionCount
focal_class.modifier: private
focal_class.original_string: private int textExtractionCount;
focal_class.type: int
focal_class.var_name: textExtractionCount
focal_class.declarator: totalBytesRead
focal_class.modifier: private
focal_class.original_string: private long totalBytesRead;
focal_class.type: long
focal_class.var_name: totalBytesRead
focal_class.declarator: totalTextSize
focal_class.modifier: private
focal_class.original_string: private long totalTextSize;
focal_class.type: long
focal_class.var_name: totalTextSize
focal_class.declarator: totalTime
focal_class.modifier: private
focal_class.original_string: private long totalTime;
focal_class.type: long
focal_class.var_name: totalTime
focal_class.declarator: preFetchedCount
focal_class.modifier: private
focal_class.original_string: private int preFetchedCount;
focal_class.type: int
focal_class.var_name: preFetchedCount
focal_class.declarator: statisticsProvider
focal_class.modifier: private final
focal_class.original_string: private final StatisticsProvider statisticsProvider;
focal_class.type: StatisticsProvider
focal_class.var_name: statisticsProvider
focal_class.declarator: cache
focal_class.modifier: private final
focal_class.original_string: private final Cache<String, String> cache;
focal_class.type: Cache<String, String>
focal_class.var_name: cache
focal_class.declarator: timeoutMap
focal_class.modifier: private final
focal_class.original_string: private final ConcurrentHashMap<String, String> timeoutMap;
focal_class.type: ConcurrentHashMap<String, String>
focal_class.var_name: timeoutMap
focal_class.declarator: indexDir
focal_class.modifier: private final
focal_class.original_string: private final File indexDir;
focal_class.type: File
focal_class.var_name: indexDir
focal_class.declarator: cacheStats
focal_class.modifier: private final
focal_class.original_string: private final CacheStats cacheStats;
focal_class.type: CacheStats
focal_class.var_name: cacheStats
focal_class.declarator: alwaysUsePreExtractedCache
focal_class.modifier: private final
focal_class.original_string: private final boolean alwaysUsePreExtractedCache;
focal_class.type: boolean
focal_class.var_name: alwaysUsePreExtractedCache
focal_class.declarator: executorService
focal_class.modifier: private volatile
focal_class.original_string: private volatile ExecutorService executorService;
focal_class.type: ExecutorService
focal_class.var_name: executorService
focal_class.declarator: timeoutCount
focal_class.modifier: private volatile
focal_class.original_string: private volatile int timeoutCount;
focal_class.type: int
focal_class.var_name: timeoutCount
focal_class.declarator: extractionTimeoutMillis = EXTRACTION_TIMEOUT_SECONDS * 1000
focal_class.modifier: private
focal_class.original_string: private long extractionTimeoutMillis = EXTRACTION_TIMEOUT_SECONDS * 1000;
focal_class.type: long
focal_class.var_name: extractionTimeoutMillis
focal_class.file: oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/ExtractedTextCache.java
focal_class.identifier: ExtractedTextCache
focal_class.class_method_signature: ExtractedTextCache.ExtractedTextCache(long maxWeight, long expiryTimeInSecs)
focal_class.full_signature: public  ExtractedTextCache(long maxWeight, long expiryTimeInSecs)
focal_class.identifier: ExtractedTextCache
focal_class.modifiers: public
focal_class.parameters: (long maxWeight, long expiryTimeInSecs)
focal_class.signature:  ExtractedTextCache(long maxWeight, long expiryTimeInSecs)
focal_class.class_method_signature: ExtractedTextCache.ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir)
focal_class.full_signature: public  ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir)
focal_class.identifier: ExtractedTextCache
focal_class.modifiers: public
focal_class.parameters: (long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir)
focal_class.signature:  ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir)
focal_class.class_method_signature: ExtractedTextCache.ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir, StatisticsProvider statisticsProvider)
focal_class.full_signature: public  ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir, StatisticsProvider statisticsProvider)
focal_class.identifier: ExtractedTextCache
focal_class.modifiers: public
focal_class.parameters: (long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir, StatisticsProvider statisticsProvider)
focal_class.signature:  ExtractedTextCache(long maxWeight, long expiryTimeInSecs, boolean alwaysUsePreExtractedCache,
                                File indexDir, StatisticsProvider statisticsProvider)
focal_class.class_method_signature: ExtractedTextCache.get(String nodePath, String propertyName, Blob blob, boolean reindexMode)
focal_class.full_signature: @Nullable public String get(String nodePath, String propertyName, Blob blob, boolean reindexMode)
focal_class.identifier: get
focal_class.modifiers: @Nullable public
focal_class.parameters: (String nodePath, String propertyName, Blob blob, boolean reindexMode)
focal_class.return: String
focal_class.signature: String get(String nodePath, String propertyName, Blob blob, boolean reindexMode)
focal_class.class_method_signature: ExtractedTextCache.put(@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.full_signature: public void put(@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.identifier: put
focal_class.modifiers: public
focal_class.parameters: (@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.return: void
focal_class.signature: void put(@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.class_method_signature: ExtractedTextCache.putTimeout(@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.full_signature: public void putTimeout(@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.identifier: putTimeout
focal_class.modifiers: public
focal_class.parameters: (@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.return: void
focal_class.signature: void putTimeout(@NotNull Blob blob, @NotNull ExtractedText extractedText)
focal_class.class_method_signature: ExtractedTextCache.getText(ExtractedText text)
focal_class.full_signature: private static String getText(ExtractedText text)
focal_class.identifier: getText
focal_class.modifiers: private static
focal_class.parameters: (ExtractedText text)
focal_class.return: String
focal_class.signature: String getText(ExtractedText text)
focal_class.class_method_signature: ExtractedTextCache.addStats(int count, long timeInMillis, long bytesRead, long textLength)
focal_class.full_signature: public void addStats(int count, long timeInMillis, long bytesRead, long textLength)
focal_class.identifier: addStats
focal_class.modifiers: public
focal_class.parameters: (int count, long timeInMillis, long bytesRead, long textLength)
focal_class.return: void
focal_class.signature: void addStats(int count, long timeInMillis, long bytesRead, long textLength)
focal_class.class_method_signature: ExtractedTextCache.getStatisticsProvider()
focal_class.full_signature: public StatisticsProvider getStatisticsProvider()
focal_class.identifier: getStatisticsProvider
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StatisticsProvider
focal_class.signature: StatisticsProvider getStatisticsProvider()
focal_class.class_method_signature: ExtractedTextCache.getStatsMBean()
focal_class.full_signature: public TextExtractionStatsMBean getStatsMBean()
focal_class.identifier: getStatsMBean
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TextExtractionStatsMBean
focal_class.signature: TextExtractionStatsMBean getStatsMBean()
focal_class.class_method_signature: ExtractedTextCache.getCacheStats()
focal_class.full_signature: @Nullable public CacheStats getCacheStats()
focal_class.identifier: getCacheStats
focal_class.modifiers: @Nullable public
focal_class.parameters: ()
focal_class.return: CacheStats
focal_class.signature: CacheStats getCacheStats()
focal_class.class_method_signature: ExtractedTextCache.setExtractedTextProvider(PreExtractedTextProvider extractedTextProvider)
focal_class.full_signature: public void setExtractedTextProvider(PreExtractedTextProvider extractedTextProvider)
focal_class.identifier: setExtractedTextProvider
focal_class.modifiers: public
focal_class.parameters: (PreExtractedTextProvider extractedTextProvider)
focal_class.return: void
focal_class.signature: void setExtractedTextProvider(PreExtractedTextProvider extractedTextProvider)
focal_class.class_method_signature: ExtractedTextCache.getExtractedTextProvider()
focal_class.full_signature: public PreExtractedTextProvider getExtractedTextProvider()
focal_class.identifier: getExtractedTextProvider
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: PreExtractedTextProvider
focal_class.signature: PreExtractedTextProvider getExtractedTextProvider()
focal_class.class_method_signature: ExtractedTextCache.resetCache()
focal_class.full_signature: public void resetCache()
focal_class.identifier: resetCache
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetCache()
focal_class.class_method_signature: ExtractedTextCache.isAlwaysUsePreExtractedCache()
focal_class.full_signature: public boolean isAlwaysUsePreExtractedCache()
focal_class.identifier: isAlwaysUsePreExtractedCache
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAlwaysUsePreExtractedCache()
focal_class.class_method_signature: ExtractedTextCache.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ExtractedTextCache.process(String name, Callable<Void> callable)
focal_class.full_signature: public void process(String name, Callable<Void> callable)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (String name, Callable<Void> callable)
focal_class.return: void
focal_class.signature: void process(String name, Callable<Void> callable)
focal_class.class_method_signature: ExtractedTextCache.setExtractionTimeoutMillis(int extractionTimeoutMillis)
focal_class.full_signature: public void setExtractionTimeoutMillis(int extractionTimeoutMillis)
focal_class.identifier: setExtractionTimeoutMillis
focal_class.modifiers: public
focal_class.parameters: (int extractionTimeoutMillis)
focal_class.return: void
focal_class.signature: void setExtractionTimeoutMillis(int extractionTimeoutMillis)
focal_class.class_method_signature: ExtractedTextCache.getExecutor()
focal_class.full_signature: private ExecutorService getExecutor()
focal_class.identifier: getExecutor
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ExecutorService
focal_class.signature: ExecutorService getExecutor()
focal_class.class_method_signature: ExtractedTextCache.createExecutor()
focal_class.full_signature: private synchronized void createExecutor()
focal_class.identifier: createExecutor
focal_class.modifiers: private synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void createExecutor()
focal_class.class_method_signature: ExtractedTextCache.closeExecutorService()
focal_class.full_signature: private synchronized void closeExecutorService()
focal_class.identifier: closeExecutorService
focal_class.modifiers: private synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeExecutorService()
focal_class.class_method_signature: ExtractedTextCache.loadTimeoutMap()
focal_class.full_signature: private synchronized void loadTimeoutMap()
focal_class.identifier: loadTimeoutMap
focal_class.modifiers: private synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadTimeoutMap()
focal_class.class_method_signature: ExtractedTextCache.storeTimeoutMap()
focal_class.full_signature: private synchronized void storeTimeoutMap()
focal_class.identifier: storeTimeoutMap
focal_class.modifiers: private synchronized
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void storeTimeoutMap()
focal_method.body: @Nullable
      public CacheStats getCacheStats() {
          return cacheStats;
      }
focal_method.class_method_signature: ExtractedTextCache.getCacheStats()
focal_method.full_signature: @Nullable public CacheStats getCacheStats()
focal_method.identifier: getCacheStats
focal_method.modifiers: @Nullable public
focal_method.parameters: ()
focal_method.return: CacheStats
focal_method.signature: CacheStats getCacheStats()