Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for findJobByUniqueOf (0.13 sec)

  1. src/main/java/org/codelibs/fess/es/config/exentity/ScheduledJob.java

        }
    
        public boolean isRunning() {
            return ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).map(LaScheduledJob::isExecutingNow).orElse(false);
        }
    
        public void start() {
            ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).ifPresent(job -> {
                job.launchNow();
            }).orElse(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/JobHelper.java

                }
            });
        }
    
        private OptionalThing<LaScheduledJob> findJobByUniqueOf(final LaJobUnique jobUnique) {
            final JobManager jobManager = ComponentUtil.getJobManager();
            try {
                return jobManager.findJobByUniqueOf(jobUnique);
            } catch (final Exception e) {
                return OptionalThing.empty();
            }
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/job/ScriptExecutorJob.java

            if (jobExecutor == null) {
                throw new ScheduledJobException("No jobExecutor: " + scriptType);
            }
    
            if (!jobManager.findJobByUniqueOf(LaJobUnique.of(id)).isPresent()) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Job {} is running.", id);
                }
                return;
            }
    
            TimeoutTask task = null;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java

                final JobManager jobManager = ComponentUtil.getJobManager();
                for (final ScheduledJob scheduledJob : scheduledJobList) {
                    jobManager.findJobByUniqueOf(LaJobUnique.of(scheduledJob.getId())).ifPresent(job -> {
                        job.launchNow();
                    });
                }
                saveInfo(messages -> messages.addSuccessStartCrawlProcess(GLOBAL));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top