Package org.qzerver.model.service.job.executor.dto

Examples of org.qzerver.model.service.job.executor.dto.AutomaticJobExecutionParameters


            EasyMock.<ScheduleExecution>anyObject()
        );

        control.replay();

        AutomaticJobExecutionParameters jobExecutionParameters = new AutomaticJobExecutionParameters();
        jobExecutionParameters.setScheduledTime(ChronometerUtils.parseMoment("2012-02-20 10:00:00.000 UTC"));
        jobExecutionParameters.setFiredTime(ChronometerUtils.parseMoment("2012-02-20 10:00:00.231 UTC"));
        jobExecutionParameters.setNextFireTime(null);

        ScheduleExecution scheduleExecution = scheduleJobExecutorService.executeAutomaticJob(scheduleJob.getId(),
            jobExecutionParameters);
        Assert.assertNotNull(scheduleExecution);
View Full Code Here


            EasyMock.eq(clusterNode1.getAddress())
        )).andReturn(new ActionAgentResult(true, null));

        control.replay();

        AutomaticJobExecutionParameters jobExecutionParameters = new AutomaticJobExecutionParameters();
        jobExecutionParameters.setScheduledTime(ChronometerUtils.parseMoment("2012-02-20 10:00:00.000 UTC"));
        jobExecutionParameters.setFiredTime(ChronometerUtils.parseMoment("2012-02-20 10:00:00.231 UTC"));
        jobExecutionParameters.setNextFireTime(null);

        ScheduleExecution scheduleExecution = scheduleJobExecutorService.executeAutomaticJob(scheduleJob.getId(),
            jobExecutionParameters);
        Assert.assertNotNull(scheduleExecution);
View Full Code Here

            (ScheduleJobExecutorService) context.get(QzerverJobListener.SERVICE_NAME);
        Preconditions.checkNotNull(executorService, "Executor service is not set");

        long scheduleJobId = QzerverKeyUtils.parseJobName(jobKey);

        AutomaticJobExecutionParameters parameters = new AutomaticJobExecutionParameters();
        parameters.setFiredTime(context.getFireTime());
        parameters.setScheduledTime(context.getScheduledFireTime());
        parameters.setNextFireTime(context.getNextFireTime());

        try {
            executorService.executeAutomaticJob(scheduleJobId, parameters);
        } catch (Exception e) {
            LOGGER.error("Fail to execute job with id : " + scheduleJobId, e);
View Full Code Here

TOP

Related Classes of org.qzerver.model.service.job.executor.dto.AutomaticJobExecutionParameters

Copyright © 2018 www.massapicom. 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.