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

io.hydrosphere.mist.Messages.scala Maven / Gradle / Ivy

package io.hydrosphere.mist

import io.hydrosphere.mist.jobs.FullJobConfiguration

private[mist] object Messages {
  
  sealed trait RemovingMessage {
    val name: String
  }
  
  sealed trait StopAllMessage

  case class CreateContext(namespace: String)

  case class StopAllContexts() extends StopAllMessage

  case class RemoveContext(name: String) extends RemovingMessage

  case class WorkerDidStart(namespace: String, address: String)

  case class AddJobToRecovery(jobId: String, jobConfiguration: FullJobConfiguration)

  case class RemoveJobFromRecovery(jobId: String)

  sealed trait AdminMessage
  
  case class StopJob(jobIdentifier: String) extends AdminMessage
 
  case class StopWorker(name: String) extends AdminMessage with RemovingMessage
  
  case class StopAllWorkers() extends AdminMessage with StopAllMessage

  case class ListWorkers() extends AdminMessage

  case class ListRouters(extended: Boolean = false) extends AdminMessage

  case class ListJobs() extends AdminMessage

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy