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

    execConfig

    the config from which worker routes will be built

    exchange

    the echange from which values will be requested should a request arrive with MatchDetails headers

    executeHandler

    the request handler for running and cancelling jobs

    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 AgoraJsonImplicits with FailFastCirceSupport with Product with Serializable

    Permalink
    Annotations
    @Api() @Path()
  4. class UploadRoutes extends FailFastCirceSupport with StrictLogging

    Permalink
    Annotations
    @Api() @Path()

Value Members

  1. object CachedOutput extends FailFastCirceSupport with AutoDerivation

    Permalink

    See agora.exec.model.OutputSettings for a description of caching strategy

  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

  5. object UploadRoutes

    Permalink

Ungrouped