Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for scheduledJob (0.15 sec)

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

    import org.codelibs.fess.util.ComponentUtil;
    import org.lastaflute.job.LaScheduledJob;
    import org.lastaflute.job.key.LaJobUnique;
    
    /**
     * @author FreeGen
     */
    public class ScheduledJob extends BsScheduledJob {
    
        private static final long serialVersionUID = 1L;
    
        @Override
        public String getScriptType() {
            final String st = super.getScriptType();
    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/app/job/ScriptExecutorJob.java

            if (!runtime.getParameterMap().containsKey(Constants.SCHEDULED_JOB)) {
                logger.warn("{} is empty.", Constants.SCHEDULED_JOB);
                return;
            }
            runtime.stopIfNeeds();
    
            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
            final JobManager jobManager = ComponentUtil.getJobManager();
            final ScheduledJob scheduledJob = (ScheduledJob) runtime.getParameterMap().get(Constants.SCHEDULED_JOB);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/ScheduledJobDbm.java

            setupEpg(_epgMap, et -> ((ScheduledJob) et).getName(), (et, vl) -> ((ScheduledJob) et).setName(DfTypeUtil.toString(vl)), "name");
            setupEpg(_epgMap, et -> ((ScheduledJob) et).getScriptData(), (et, vl) -> ((ScheduledJob) et).setScriptData(DfTypeUtil.toString(vl)),
                    "scriptData");
            setupEpg(_epgMap, et -> ((ScheduledJob) et).getScriptType(), (et, vl) -> ((ScheduledJob) et).setScriptType(DfTypeUtil.toString(vl)),
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/JobHelper.java

        public void register(final ScheduledJob scheduledJob) {
            final JobManager jobManager = ComponentUtil.getJobManager();
            jobManager.schedule(cron -> register(cron, scheduledJob));
        }
    
        public void register(final LaCron cron, final ScheduledJob scheduledJob) {
            if (scheduledJob == null) {
                throw new ScheduledJobException("No job.");
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/es/config/bsbhv/BsScheduledJobBhv.java

            return createOptionalEntity(doSelectByPK(id, tp), id);
        }
    
        @Override
        protected Class<? extends ScheduledJob> typeOfSelectedEntity() {
            return ScheduledJob.class;
        }
    
        @Override
        protected Class<ScheduledJob> typeOfHandlingEntity() {
            return ScheduledJob.class;
        }
    
        @Override
        protected Class<ScheduledJobCB> typeOfHandlingConditionBean() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java

    import org.codelibs.fess.app.web.api.ApiResult.ApiResponse;
    import org.codelibs.fess.app.web.api.ApiResult.Status;
    import org.codelibs.fess.app.web.api.admin.FessApiAdminAction;
    import org.codelibs.fess.es.config.exentity.ScheduledJob;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.HtmlResponse;
    import org.lastaflute.web.response.JsonResponse;
    
    import jakarta.annotation.Resource;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/ScheduledJobService.java

            });
        }
    
        public OptionalEntity<ScheduledJob> getScheduledJob(final String id) {
            return scheduledJobBhv.selectByPK(id);
        }
    
        public void delete(final ScheduledJob scheduledJob) {
            scheduledJobBhv.delete(scheduledJob, op -> {
                op.setRefreshPolicy(Constants.TRUE);
            });
            ComponentUtil.getJobHelper().remove(scheduledJob);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/exentity/JobLog.java

        private static final long serialVersionUID = 1L;
    
        private ScheduledJob scheduledJob;
    
        public JobLog() {
        }
    
        public JobLog(final ScheduledJob scheduledJob) {
            this.scheduledJob = scheduledJob;
            setJobName(scheduledJob.getName());
            setScriptType(scheduledJob.getScriptType());
            setScriptData(scheduledJob.getScriptData());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/wizard/AdminWizardAction.java

            if (!processHelper.isProcessRunning()) {
                final List<ScheduledJob> scheduledJobList = scheduledJobService.getCrawlerJobList();
                final JobManager jobManager = ComponentUtil.getJobManager();
                for (final ScheduledJob scheduledJob : scheduledJobList) {
                    jobManager.findJobByUniqueOf(LaJobUnique.of(scheduledJob.getId())).ifPresent(job -> {
                        job.launchNow();
                    });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/job/AllJobScheduler.java

                    if (logger.isDebugEnabled()) {
                        logger.debug("Updating job schedule:{}", scheduledJob.getName());
                    }
                    try {
                        jobHelper.register(scheduledJob);
                    } catch (final Exception e) {
                        logger.warn("Failed to update schdule {}", scheduledJob, e);
                    }
                });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top