Package

jabroni

exec

Permalink

package exec

This serves as a kind of example of how this whole jabroni stuff can be used.

We set up an 'RunProcess' requests, which just runs things on a worker node. The worker node can change its subscription to filter/configure what gets run.

The worker also exposes multiple handlers - one for executing a job which returns the jobs output, and another for being able to cancel a job based on a job id.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. exec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ExecConfig extends WorkerConfig

    Permalink
  2. case class ExecutionRoutes(execConfig: ExecConfig) extends StrictLogging with FailFastCirceSupport with Product with Serializable

    Permalink

    Combines both the worker routes and some job output onesExec§§§§

  3. class LocalRunner extends ProcessRunner with StrictLogging

    Permalink

    Something which can run commands

  4. case class OperationResult(messages: List[String]) extends Product with Serializable

    Permalink
  5. case class PathConfig(config: Config) extends Product with Serializable

    Permalink
  6. case class ProcessError(process: RunProcess, exitCode: Option[Int], stdErr: List[String]) extends Product with Serializable

    Permalink
  7. case class ProcessException(error: ProcessError) extends Exception with Product with Serializable

    Permalink
  8. trait ProcessRunner extends AnyRef

    Permalink

    prepresents something which can be run

  9. case class RemoteRunner(exchange: ExchangeClient, maximumFrameLength: Int, allowTruncation: Boolean)(implicit mat: Materializer, uploadTimeout: FiniteDuration) extends ProcessRunner with AutoCloseable with FailFastCirceSupport with Product with Serializable

    Permalink
  10. case class RunProcess(command: List[String], env: Map[String, String] = Map.empty, successExitCodes: Set[Int] = Set(0), errorMarker: String = "*** _-={ E R R O R }=-_ ***") extends Product with Serializable

    Permalink
  11. case class Upload(name: String, size: Long, source: Source[ByteString, Any]) extends Product with Serializable

    Permalink

Value Members

  1. object ExecConfig

    Permalink
  2. object ExecHttp extends RequestBuilding

    Permalink
  3. object LocalRunner

    Permalink
  4. object Main extends StrictLogging

    Permalink
  5. object OperationResult extends Serializable

    Permalink
  6. object ProcessError extends Serializable

    Permalink
  7. object ProcessException extends Serializable

    Permalink
  8. object ProcessRunner

    Permalink
  9. object RunProcess extends Serializable

    Permalink
  10. package log

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped