Created
August 17, 2012 21:49
-
-
Save florianleibert/3382996 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class BaseJob(@JsonProperty @BeanProperty val name: String, | |
@JsonProperty @BeanProperty val command: String, | |
@JsonProperty @BeanProperty val epsilon: Period = Minutes.minutes(5).toPeriod) { | |
def this(command: String, epsilon: Period) { | |
this("", command, epsilon) | |
} | |
} | |
case class ScheduleBasedJob(@JsonProperty @BeanProperty val schedule: String, | |
@JsonProperty @BeanProperty override val name: String, | |
@JsonProperty @BeanProperty override val command: String, | |
@JsonProperty @BeanProperty override val epsilon: Period = Minutes.minutes(5).toPeriod) | |
extends BaseJob(name, command, epsilon) | |
case class DependencyBasedJob(@JsonProperty @BeanProperty val parents: List[String], | |
override val name: String, | |
override val command: String, | |
override val epsilon: Period = Minutes.minutes(5).toPeriod) | |
extends BaseJob(name, command, epsilon) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment