Examples of scheduleCronJob()


Examples of org.rhq.enterprise.server.scheduler.EnhancedScheduler.scheduleCronJob()

        if (schedule.getScheduleType() instanceof CronScheduleType) {
            String cronExpression = ((CronScheduleType) schedule.getScheduleType()).getCronExpression();
            log.info("Scheduling server plugin cron job: jobName=" + schedule.getJobId() + ", groupName=" + groupName
                + ", jobClass=" + jobClass + ", cron=" + cronExpression);
            scheduler.scheduleCronJob(schedule.getJobId(), groupName, jobData, jobClass, rescheduleIfExists,
                isVolatile, cronExpression);
        } else {
            long initialDelay = 10000L; // arbitrary - wait a small bit of time before triggering the job
            long interval = ((PeriodicScheduleType) schedule.getScheduleType()).getPeriod();
            log.info("Scheduling server plugin periodic job: jobName=" + schedule.getJobId() + ", groupName="
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.SchedulerLocal.scheduleCronJob()

            getLog().debug(contentSource.toString() + " does not define a sync schedule - not scheduling.");
            return;
        }

        SchedulerLocal scheduler = LookupUtil.getSchedulerBean();
        scheduler.scheduleCronJob(ContentProviderSyncJob.createJobName(contentSource), CONTENT_SRC_SYNC_JOB_GROUP_NAME,
            ContentProviderSyncJob.createJobDataMap(contentSource, null), ContentProviderSyncJob.class, true, false,
            syncSchedule);
    }

    /**
 
View Full Code Here

Examples of org.rhq.enterprise.server.scheduler.SchedulerLocal.scheduleCronJob()

            return;
        }

        SchedulerLocal scheduler = LookupUtil.getSchedulerBean();

        scheduler.scheduleCronJob(RepoSyncJob.createJobName(repo), REPO_SYNC_JOB_GROUP_NAME, RepoSyncJob
            .createJobDataMap(null, repo), RepoSyncJob.class, true, false, syncSchedule);
    }

    /**
     * It will schedule one job per adapter such that each adapter is scheduled to be synchronized as per its defined
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.