[ https://issues.apache.org/jira/browse/GEARPUMP-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15833370#comment-15833370 ]
ASF GitHub Bot commented on GEARPUMP-265: ----------------------------------------- Github user manuzhang commented on a diff in the pull request: https://github.com/apache/incubator-gearpump/pull/134#discussion_r97216725 --- Diff: core/src/main/scala/org/apache/gearpump/cluster/appmaster/ApplicationRuntimeInfo.scala --- @@ -19,20 +19,34 @@ package org.apache.gearpump.cluster.appmaster import akka.actor.ActorRef -import com.typesafe.config.Config +import com.typesafe.config.{Config, ConfigFactory} +import org.apache.gearpump.TimeStamp +import org.apache.gearpump.cluster.ApplicationStatus -import org.apache.gearpump._ -import org.apache.gearpump.cluster.AppMasterRegisterData - -/** Run time info used to start an AppMaster */ -case class AppMasterRuntimeInfo( +/** Run time info of Application */ +case class ApplicationRuntimeInfo( appId: Int, // AppName is the unique Id for an application appName: String, - worker: ActorRef = null, - user: String = null, + appMaster: ActorRef = ActorRef.noSender, + worker: ActorRef = ActorRef.noSender, + user: String = "", submissionTime: TimeStamp = 0, startTime: TimeStamp = 0, finishTime: TimeStamp = 0, - config: Config = null) - extends AppMasterRegisterData + config: Config = ConfigFactory.empty(), + status: ApplicationStatus = ApplicationStatus.Nonexist) { + + def onAppMasterRegister(appMaster: ActorRef, worker: ActorRef): ApplicationRuntimeInfo = { + this.copy(appMaster = appMaster, worker = worker) + } + + def onActived(timeStamp: TimeStamp): ApplicationRuntimeInfo = { --- End diff -- I think the verb is `Activate` > remove AppMasterRuntimeInfo from AppMasterContext > ------------------------------------------------- > > Key: GEARPUMP-265 > URL: https://issues.apache.org/jira/browse/GEARPUMP-265 > Project: Apache Gearpump > Issue Type: Sub-task > Affects Versions: 0.8.2 > Reporter: Huafeng Wang > -- This message was sent by Atlassian JIRA (v6.3.4#6332)