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

responses.ResponseObjects.scala Maven / Gradle / Ivy

Go to download

The API for Spark-Job-Rest. Contains the SparkJob interface that must be extended in order to run jobs on the server.

There is a newer version: 0.3.1-spark1.3.1
Show newest version
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