Github user manuzhang commented on a diff in the pull request: https://github.com/apache/incubator-gearpump/pull/134#discussion_r97216223 --- Diff: core/src/main/scala/org/apache/gearpump/cluster/AppDescription.scala --- @@ -139,4 +138,47 @@ case class ExecutorContext( case class ExecutorJVMConfig( classPath: Array[String], jvmArguments: Array[String], mainClass: String, arguments: Array[String], jar: Option[AppJar], username: String, - executorAkkaConfig: Config = ConfigFactory.empty()) \ No newline at end of file + executorAkkaConfig: Config = ConfigFactory.empty()) + +// Not using Enumeration here because upickle does not support it +sealed trait ApplicationStatus { + def isTerminalStatus: Boolean +} + +object ApplicationStatus { + case object Pending extends ApplicationStatus { + override def toString: String = "pending" --- End diff -- You may define this only once in the superclass and pass in the status string from subclasses.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---