Package com.gainmatrix.lib.business.exception

Examples of com.gainmatrix.lib.business.exception.SystemIntegrityException


        LOGGER.debug("Watchog thread is started");

        try {
            watched.join(timeoutMs);
        } catch (InterruptedException e) {
            throw new SystemIntegrityException("Watchdog thread is unexpectedly interrupted", e);
        }

        if (watched.isAlive()) {
            LOGGER.debug("Local process will be interrupted because of timeout");
            watched.interruptOnTimeout();
View Full Code Here


        LOGGER.debug("Watchog thread is started");

        try {
            watched.join(timeoutMs);
        } catch (InterruptedException e) {
            throw new SystemIntegrityException("Watchdog thread is unexpectedly interrupted", e);
        }

        if (watched.isAlive()) {
            LOGGER.debug("Http capturing will be interrupted because of timeout");
            watched.interruptByTimeout();
View Full Code Here

        byte[] result;

        try {
            result = objectMapper.writeValueAsBytes(actionResult);
        } catch (IOException e) {
            throw new SystemIntegrityException("Fail to marshall result", e);
        }

        return result;
    }
View Full Code Here

        try {
            result = objectMapper.writeValueAsBytes(actionDefinition);
        } catch (IOException e) {
            String message = "Fail to marshall definition for identifier " + actionDefinition;
            throw new SystemIntegrityException(message, e);
        }

        return result;
    }
View Full Code Here

    @Override
    public boolean isSchedulerActive() {
        try {
            return !scheduler.isInStandbyMode();
        } catch (SchedulerException e) {
            throw new SystemIntegrityException("Fail to check quartz activity", e);
        }
    }
View Full Code Here

            if (scheduler.isInStandbyMode()) {
                LOGGER.debug("Turn Quartz on");
                scheduler.start();
            }
        } catch (SchedulerException e) {
            throw new SystemIntegrityException("Fail to start quartz", e);
        }
    }
View Full Code Here

            if (!scheduler.isInStandbyMode()) {
                LOGGER.debug("Turn Quartz off");
                scheduler.standby();
            }
        } catch (SchedulerException e) {
            throw new SystemIntegrityException("Fail to stop quartz", e);
        }
    }
View Full Code Here

                .build();

        try {
            scheduler.addJob(jobDetail, false);
        } catch (SchedulerException e) {
            throw new SystemIntegrityException("Fail to create quartz job", e);
        }

        if (enabled) {
            Trigger trigger = createJobCronTrigger(jobId, cron, timeZoneId);

            try {
                scheduler.scheduleJob(trigger);
            } catch (SchedulerException e) {
                throw new SystemIntegrityException("Fail to schedule quartz job on job creation", e);
            }
        }
    }
View Full Code Here

        JobKey jobKey = QzerverKeyUtils.jobKey(jobId);

        try {
            scheduler.deleteJob(jobKey);
        } catch (SchedulerException e) {
            throw new SystemIntegrityException("Fail to delete quartz job", e);
        }
    }
View Full Code Here

        Trigger trigger = createJobCronTrigger(jobId, cron, timeZoneId);

        try {
            scheduler.rescheduleJob(trigger.getKey(), trigger);
        } catch (SchedulerException e) {
            throw new SystemIntegrityException("Fail to replace quartz trigger on reschedule", e);
        }
    }
View Full Code Here

TOP

Related Classes of com.gainmatrix.lib.business.exception.SystemIntegrityException

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.