Package com.rupertjones.globalcron.common.domain

Examples of com.rupertjones.globalcron.common.domain.JobExecutionLog


    @Override
    public void afterExecution(ExecutionContext context) {
        LOG.debug("Sending execution details..");
        JobDescriptor jobDescriptor = context.getJobDescriptor();
        JobDescriptor fresh = jobStore.findById(jobDescriptor.getId());
        JobExecutionLog jobExecutionLog = new JobExecutionLog();
        jobExecutionLog.setTimeTaken(context.getTimeTaken());
        jobExecutionLog.setJob(fresh);
        jobExecutionLog.setExecutedNormally(context.getExecutedNormally());
        jobExecutionLog.setSummary(context.getSummary());
        fresh.updateLastFire(context.getLastFire());
        fresh.updateNextFire(context.getNextFire());
        fresh.addOutput(jobExecutionLog);
        if (jobDescriptor.isSaveOutput()) {
            jobExecutionLog.setOutput(context.getOutput());
        }
        jmsTemplate.convertAndSend(fresh);
    }
View Full Code Here


    @Override
    public void afterExecution(ExecutionContext context) {
        LOG.debug("Recording execution details..");
        JobDescriptor jobDescriptor = context.getJobDescriptor();
        JobDescriptor fresh = jobStore.findById(jobDescriptor.getId());
        JobExecutionLog jobExecutionLog = new JobExecutionLog();
        jobExecutionLog.setTimeTaken(context.getTimeTaken());
        jobExecutionLog.setJob(fresh);
        jobExecutionLog.setExecutedNormally(context.getExecutedNormally());
        jobExecutionLog.setSummary(context.getSummary());
        fresh.updateLastFire(context.getLastFire());
        fresh.updateNextFire(context.getNextFire());
        fresh.addOutput(jobExecutionLog);
        if (jobDescriptor.isSaveOutput()) {
            jobExecutionLog.setOutput(context.getOutput());
        }
    }
View Full Code Here

TOP

Related Classes of com.rupertjones.globalcron.common.domain.JobExecutionLog

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.