Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for runOnThread (0.1 sec)

  1. src/test/java/org/codelibs/fess/helper/CrawlerStatsHelperTest.java

        }
    
        public void test_beginDoneWithRecordOnLazy() {
            String key = "test";
            crawlerStatsHelper.begin(key);
            crawlerStatsHelper.record(key, "aaa");
            crawlerStatsHelper.runOnThread(key);
            crawlerStatsHelper.done(key);
            logger.info(localLogMsg.get());
            assertNull(localLogMsg.get());
            crawlerStatsHelper.done(key);
            logger.info(localLogMsg.get());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

            data.entrySet().stream().map(e -> escapeValue(e.getKey()) + ":" + (e.getValue().longValue() - begin)).map(s -> "\t" + s)
                    .forEach(s -> buf.append(s));
            log(buf);
        }
    
        public void runOnThread(final Object keyObj) {
            getCacheKey(keyObj).ifPresent(key -> {
                try {
                    final StatsObject data = statsCache.getIfPresent(key);
                    if (data != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

            final StatsKeyObject keyObj = paramMap.get(Constants.CRAWLER_STATS_KEY) instanceof final StatsKeyObject sko ? sko : null;
            if (keyObj != null) {
                crawlerStatsHelper.runOnThread(keyObj);
            }
            final DataStoreParams localParams = paramMap.newInstance();
            executor.execute(() -> {
                try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top