[ https://issues.apache.org/jira/browse/GEARPUMP-252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15834005#comment-15834005 ]
ASF GitHub Bot commented on GEARPUMP-252: ----------------------------------------- Github user manuzhang commented on a diff in the pull request: https://github.com/apache/incubator-gearpump/pull/134#discussion_r97263412 --- Diff: core/src/main/scala/org/apache/gearpump/cluster/AppDescription.scala --- @@ -142,4 +139,26 @@ 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()) + +sealed abstract class ApplicationStatus(val status: String) + extends Serializable{ + override def toString: String = status +} + +sealed abstract class ApplicationTerminalStatus(override val status: String) + extends ApplicationStatus(status) + +object ApplicationStatus { + case object PENDING extends ApplicationStatus("pending") + + case object ACTIVE extends ApplicationStatus("active") + + case object SUCCEEDED extends ApplicationTerminalStatus("succeeded") + + case object FAILED extends ApplicationTerminalStatus("failed") + + case object TERMINATED extends ApplicationTerminalStatus("terminated") + + case object NOEXIST extends ApplicationStatus("nonexist") --- End diff -- `noexist` or `nonexist` ? > return application status to client > ----------------------------------- > > Key: GEARPUMP-252 > URL: https://issues.apache.org/jira/browse/GEARPUMP-252 > Project: Apache Gearpump > Issue Type: Improvement > Affects Versions: 0.8.2 > Reporter: Manu Zhang > Assignee: Huafeng Wang > > Currently, client exits after submitting applications and has no idea of the > application status. It will be valuable to return such information to client. -- This message was sent by Atlassian JIRA (v6.3.4#6332)