All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ytsaurus.spyt.launcher.DeployMessages.scala Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package tech.ytsaurus.spyt.launcher

import java.util.Date

sealed trait DeployMessage extends Serializable

object DeployMessages {

  case class RegisterDriverToAppId(driverId: String, appId: String) extends DeployMessage

  case class UnregisterDriverToAppId(driverId: String) extends DeployMessage

  case object RequestDriverStatuses extends DeployMessage

  case class RequestApplicationStatus(appId: String) extends DeployMessage

  case object RequestApplicationStatuses extends DeployMessage

  case class DriverStatus(id: String, state: String, startTimeMs: Long)

  case class DriverStatusesResponse(statuses: Seq[DriverStatus],
                                    exception: Option[Exception])

  case class ApplicationInfo(id: String, state: String, startTime: Long, submitDate: Date)

  case class ApplicationStatusResponse(found: Boolean, info: Option[ApplicationInfo])

  case class ApplicationStatusesResponse(statuses: Seq[ApplicationInfo], masterIsAlive: Boolean)

  case class RequestAppId(driverId: String) extends DeployMessage

  case class AppIdResponse(appId: Option[String])
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy