Examples of MonthlyScheduleHelper


Examples of org.wso2.carbon.billing.core.scheduler.scheduleHelpers.MonthlyScheduleHelper

        String timeZoneStr = "GMT-8:00";
        TimeZone timeZone = TimeZone.getTimeZone(timeZoneStr);
        args.put("timeZone", timeZoneStr);
        args.put("dayToTriggerOn", triggerOn);
        args.put("hourToTriggerOn", "0");
        MonthlyScheduleHelper monthlyTriggerCalculator = new MonthlyScheduleHelper();
        monthlyTriggerCalculator.init(args);

        SchedulerContext schedulerContext = new SchedulerContext();
        monthlyTriggerCalculator.invoke(schedulerContext, someDateTimeStamp);

        long nextMonthFirstTimeStampDuration = schedulerContext.getNextTriggerInterval();

        long durationStart = schedulerContext.getCurrentDurationStart();
        long durationEnd = schedulerContext.getCurrentDurationEnd();
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.