Examples of WeeklySchedulerIterator


Examples of org.sonatype.scheduling.iterators.WeeklySchedulerIterator

    days.add(4);
    days.add(5);
    days.add(6);
    days.add(7);

    WeeklySchedulerIterator iter = new WeeklySchedulerIterator(nearFuture.getTime(), null, days);

    Date nextDate = iter.next();

    assertTrue(nearFuture.getTime().equals(nextDate));

    // Just validate the next 20 days in a row
    for (int i = 0; i < 20; i++) {
      nextDate = iter.next();

      nearFuture.add(Calendar.DAY_OF_YEAR, 1);

      assertTrue(nearFuture.getTime().equals(nextDate));
    }
View Full Code Here

Examples of org.sonatype.scheduling.iterators.WeeklySchedulerIterator

  public Set<Integer> getDaysToRun() {
    return daysToRun;
  }

  protected SchedulerIterator createIterator() {
    return new WeeklySchedulerIterator(getStartDate(), getEndDate(), daysToRun);
  }
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.