Examples of nextMatchingDate()


Examples of it.sauronsoftware.cron4j.Predictor.nextMatchingDate()

        try {
            Predictor cron = new Predictor(
                    station.getSongReminderMessageSchedule());
            cron.setTimeZone(station.getTimeZone());
            Date when = cron.nextMatchingDate();

            if (logger.isTraceEnabled()) {
                logger.trace("Scheduling song reminder task based on "
                        + "cron schedule "
                        + station.getNewBroadcastMessageSchedule()
View Full Code Here

Examples of it.sauronsoftware.cron4j.Predictor.nextMatchingDate()

        // The most important part of a new broadcast is its end date which is
        // calculated based on the Cron expression of the station
        try {
            Predictor cron = new Predictor(station.getBroadcastSchedule());
            cron.setTimeZone(station.getTimeZone());
            broadcast.setFinale(cron.nextMatchingDate());
        } catch (InvalidPatternException pEx) {
            logger.error("Cron trigger " + station.getBroadcastSchedule()
                    + " is invalid", pEx);

            // Send error to the admins
View Full Code Here

Examples of it.sauronsoftware.cron4j.Predictor.nextMatchingDate()

        try {
            Predictor cron = new Predictor(
                    station.getNewBroadcastMessageSchedule());
            cron.setTimeZone(station.getTimeZone());
            Date when = cron.nextMatchingDate();

            if (logger.isTraceEnabled()) {
                logger.trace("Scheduling new broadcast messages task based on "
                        + "cron schedule "
                        + station.getNewBroadcastMessageSchedule()
View Full Code Here

Examples of it.sauronsoftware.cron4j.Predictor.nextMatchingDate()

        Date when;
        try {
            Predictor cron = new Predictor(
                    station.getSongReminderMessageSchedule());
            cron.setTimeZone(station.getTimeZone());
            when = cron.nextMatchingDate();

            if (logger.isTraceEnabled()) {
                logger.trace("Song reminder messages will be scheduled based "
                        + "on cron schedule "
                        + station.getSongReminderMessageSchedule()
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.