Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for calibrateCpuLoad (0.08 sec)

  1. src/main/java/org/codelibs/fess/crawler/interval/FessIntervalController.java

         * in test and production environments.
         */
        @Override
        protected void delayForWaitingNewUrl() {
            try {
                ComponentUtil.getSystemHelper().calibrateCpuLoad();
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to calibrate CPU load", e);
                }
            }
    
            try {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Wed Nov 19 07:09:17 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                        } catch (final IOException e) {
                            throw new IORuntimeException(e);
                        }
                        if (!systemHelper.calibrateCpuLoad(timeout)) {
                            breakCursor = true;
                        }
                    }
                });
            };
        }
    
        /**
         * Get the write call for user info ndjson.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Mon Nov 24 02:07:40 UTC 2025
    - 32.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         */
        public boolean calibrateCpuLoad() {
            return calibrateCpuLoad(0L);
        }
    
        /**
         * Calibrates the CPU load with a timeout.
         *
         * @param timeoutInMillis The timeout in milliseconds.
         * @return true if the CPU load is within the acceptable range, false otherwise.
         */
        public boolean calibrateCpuLoad(final long timeoutInMillis) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 08:30:43 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImpl.java

         */
        @Override
        public void store(final DataStoreParams paramMap, final Map<String, Object> dataMap) {
            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
            systemHelper.calibrateCpuLoad();
    
            final long startTime = systemHelper.getCurrentTimeAsLong();
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

         */
        protected void process(final FessConfig fessConfig, final ThumbnailQueue entity) {
            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
            systemHelper.calibrateCpuLoad();
    
            if (logger.isDebugEnabled()) {
                logger.debug("Processing thumbnail: {}", entity);
            }
            final String generatorName = entity.getGenerator();
            try {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 27K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

                reader.addSort(SortBuilders.scoreSort());
                return reader;
            }, docPerReq, () -> {
                systemHelper.calibrateCpuLoad();
                ThreadUtil.sleep(interval);
            }).then(response -> {
                refresh();
                success.accept(true);
            }).error(t -> error.accept(t));
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                        if (interval > 0) {
                            // sleep
                            ThreadUtil.sleep(interval); // 10 sec (default)
                        }
    
                        systemHelper.calibrateCpuLoad();
                        systemHelper.waitForNoWaitingThreads();
    
                        intervalControlHelper.delayByRules();
    
                        if (logger.isDebugEnabled()) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 32.9K bytes
    - Viewed (0)
Back to top