Package

agora.exec

rest

Permalink

package rest

Visibility
  1. Public
  2. All

Type Members

  1. case class ExecutionRoutes(execConfig: ExecConfig, exchange: Exchange, executeHandler: ExecutionWorkflow) extends RouteSubscriptionSupport with FailFastCirceSupport with Product with Serializable

    Permalink

    The execution routes can execute commands on the machine, as well as upload files to workspaces.

    The execution routes can execute commands on the machine, as well as upload files to workspaces.

    Use Case Example w/ Spark

    Consider an Apache Spark use-case, where we have a command we want to execute on a machine which depends on data being uploaded from some worker nodes.

    One approach would be to execute an initial command in order to 'select' a number of workers. That could be a command to actually get data, or just choose which workers match particular criteria.

    Once we have chosen that/those worker(s), we have each Spark node make a request to upload its partitioned data to them in a prepare step asynchronously (fire and forget).

    The workers could then perform actions based on normal executions via the exchange which specify selection criteria that target those specific nodes (as we want to ensure our commands operate on the same files which were uploaded by specifying UploadDependencies.

    Combines both the worker routes and some job output ones.

    NOTE: These routes are separate from the WorkerRoutes which handle jobs that have been redirected from the exchange

    Annotations
    @Api() @Path()
  2. trait ExecutionWorkflow extends AnyRef

    Permalink

    Represents a handler which will be triggered from the given HttpRequest when a RunProcess is received

  3. case class QueryRoutes(monitor: SystemEventMonitor) extends RouteSubscriptionSupport with JsonByteImplicits with FailFastCirceSupport with Product with Serializable

    Permalink
    Annotations
    @Api() @Path()
  4. case class UploadRoutes(workspaces: WorkspaceClient) extends FailFastCirceSupport with StrictLogging with Product with Serializable

    Permalink
    Annotations
    @Api() @Path()

Value Members

  1. object ExecHttp extends CommonRequestBuilding

    Permalink
  2. object ExecutionRoutes extends Serializable

    Permalink
  3. object ExecutionWorkflow extends StrictLogging with FailFastCirceSupport

    Permalink
  4. object MultipartExtractor extends LazyLogging

    Permalink

    One place to stick all the ugly parsing of multipart form submssions from web forms

Ungrouped