responses.ResponseObjects.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-job-rest-api Show documentation
Show all versions of spark-job-rest-api Show documentation
The API for Spark-Job-Rest.
Contains the SparkJob interface that must be extended in order to run jobs on the server.
package responses
import spray.json.DefaultJsonProtocol._
/**
* Created by raduc on 24/04/15.
*/
case class Context(contextName: String, sparkUiPort: String)
object Context {
implicit val logJson = jsonFormat2(apply)
}
case class Contexts(contexts: Array[Context])
object Contexts {
implicit val logJson = jsonFormat1(apply)
}
case class Job(jobId: String, contextName: String, status: String, result: String, startTime: Long)
object Job {
implicit val logJson = jsonFormat5(apply)
}
case class Jobs(jobs: Array[Job])
object Jobs {
implicit val logJson = jsonFormat1(apply)
}
case class JarInfo(name: String, size: Long, timestamp: Long)
object JarInfo {
implicit val logJson = jsonFormat3(apply)
}
case class JarsInfo(jars: Array[JarInfo])
object JarsInfo {
implicit val logJson = jsonFormat1(apply)
}
case class ErrorResponse(error: String)
object ErrorResponse {
implicit val logJson = jsonFormat1(apply)
}
case class SimpleMessage(message: String)
object SimpleMessage {
implicit val logJson = jsonFormat1(apply)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy