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

org.apache.spark.deploy.rest.RestSubmissionClientWrapper.scala Maven / Gradle / Ivy

The newest version!
package org.apache.spark.deploy.rest

object RestSubmissionClientWrapper {
  type Client = RestSubmissionClientSpyt

  def create(master: String): RestSubmissionClientSpyt = new RestSubmissionClientSpyt(master = master)

  def requestSubmissionStatus(client: RestSubmissionClientSpyt, id: String): SubmissionStatusResponse = {
    client.requestSubmissionStatus(id).asInstanceOf[SubmissionStatusResponse]
  }

  def requestApplicationId(client: RestSubmissionClientSpyt, id: String): AppIdRestResponse = {
    client.requestAppId(id).asInstanceOf[AppIdRestResponse]
  }

  def requestApplicationStatus(client: RestSubmissionClientSpyt, id: String): AppStatusRestResponse = {
    client.requestAppStatus(id).asInstanceOf[AppStatusRestResponse]
  }

  def killSubmission(client: RestSubmissionClientSpyt, id: String): KillSubmissionResponse = {
    client.killSubmission(id).asInstanceOf[KillSubmissionResponse]
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy