Move watcher's Cron into x-pack core (elastic/x-pack-elasticsearch#3716)
This change moves watcher's Cron class in the schedule package of xpack-core so that it can be used by other projects (rollup). Original commit: elastic/x-pack-elasticsearch@f0aa32ccc2
This commit is contained in:
parent
3e24ea3ed2
commit
3316c964c8
|
@ -3,7 +3,7 @@
|
|||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
package org.elasticsearch.xpack.watcher.trigger.schedule;
|
||||
package org.elasticsearch.xpack.core.scheduler;
|
||||
|
||||
import org.elasticsearch.ElasticsearchParseException;
|
||||
import org.joda.time.DateTimeZone;
|
|
@ -5,6 +5,8 @@
|
|||
*/
|
||||
package org.elasticsearch.xpack.watcher.trigger.schedule;
|
||||
|
||||
import org.elasticsearch.xpack.core.scheduler.Cron;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Comparator;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -10,12 +10,11 @@ import java.util.List;
|
|||
|
||||
import joptsimple.OptionSet;
|
||||
import joptsimple.OptionSpec;
|
||||
import org.elasticsearch.cli.Command;
|
||||
import org.elasticsearch.cli.ExitCodes;
|
||||
import org.elasticsearch.cli.LoggingAwareCommand;
|
||||
import org.elasticsearch.cli.UserException;
|
||||
import org.elasticsearch.cli.Terminal;
|
||||
import org.elasticsearch.xpack.watcher.trigger.schedule.Cron;
|
||||
import org.elasticsearch.xpack.core.scheduler.Cron;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.DateTimeZone;
|
||||
import org.joda.time.format.DateTimeFormat;
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.elasticsearch.common.util.CollectionUtils;
|
|||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.xpack.core.scheduler.Cron;
|
||||
import org.elasticsearch.xpack.watcher.trigger.schedule.support.DayOfWeek;
|
||||
import org.elasticsearch.xpack.watcher.trigger.schedule.support.DayTimes;
|
||||
import org.elasticsearch.xpack.watcher.trigger.schedule.support.Month;
|
||||
|
|
Loading…
Reference in New Issue