Object/Trait

agora.exec.rest

ExecutionWorkflow

Related Docs: trait ExecutionWorkflow | package rest

Permalink

object ExecutionWorkflow extends StrictLogging with FailFastCirceSupport

Linear Supertypes
FailFastCirceSupport, FailFastUnmarshaller, BaseCirceSupport, StrictLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutionWorkflow
  2. FailFastCirceSupport
  3. FailFastUnmarshaller
  4. BaseCirceSupport
  5. StrictLogging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class CachingWorkflow extends ExecutionWorkflow

    Permalink

    A workflow which will check .cache directories in the request's workspace

  2. class Instance extends ExecutionWorkflow with FailFastCirceSupport

    Permalink

    Executes the 'RunProcess' using the given 'defaultEnv' (default system properties), workspace, and input request.

    Executes the 'RunProcess' using the given 'defaultEnv' (default system properties), workspace, and input request.

    The workflow is:

    1) await any dependencies declared on the RunProcess using the WorkspaceClient 2) upon success of #1, a ProcessLoggers is created for the job in the working directory using the MatchDetails extracted from the HttpRequest headers (if any). Any std out or std err files from the RunProcess are appended to the ProcessLoggers used to run the job. 3) An HttpResponse future is prepared based on the HttpRequest given. That response will either be a FileResult if no streaming settings are provided or a StreamingResult if result streaming was specified by the RunProcess.output.streaming.

    Note: if any std out or std err files were specified, then the WorkspaceClient.triggerUploadCheck will be invoked to re-check any files which may depend on the output

    returns

    the HttpResponse in a future

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(defaultEnv: Map[String, String], workspaces: WorkspaceClient, eventMonitor: SystemEventMonitor, enableCacheCheck: Boolean = false): ExecutionWorkflow

    Permalink

    Creates a workflow with which to handle incoming execution requests.

    Creates a workflow with which to handle incoming execution requests.

    defaultEnv

    any system properties used to inject into incoming requests

    workspaces

    the workspaces system to use in working out job dependencies and working directories in which to run the jobs

    eventMonitor

    a monitor which we can alert w/ job notifications and other interesting events

    returns

    an ExecutionWorkflow for handling jobs originating from HttpRequests

  5. def asErrorResponse(exp: ProcessException): HttpResponse

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. implicit final def jsonMarshaller(implicit printer: Printer): ToEntityMarshaller[Json]

    Permalink
    Definition Classes
    BaseCirceSupport
  14. implicit final val jsonUnmarshaller: FromEntityUnmarshaller[Json]

    Permalink
    Definition Classes
    BaseCirceSupport
  15. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  16. implicit final def marshaller[A](implicit arg0: Encoder[A], printer: Printer): ToEntityMarshaller[A]

    Permalink
    Definition Classes
    BaseCirceSupport
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def streamBytes(bytes: Source[ByteString, Any], runProc: RunProcess, matchDetails: Option[MatchDetails], request: HttpRequest)(implicit ec: ExecutionContext): Future[HttpResponse]

    Permalink

    Stream the byte source into a chunked HttpResponse

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. implicit final def unmarshaller[A](implicit arg0: Decoder[A]): FromEntityUnmarshaller[A]

    Permalink
    Definition Classes
    FailFastUnmarshaller
  24. def unmarshallerContentTypes: Seq[ContentTypeRange]

    Permalink
    Definition Classes
    BaseCirceSupport
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from FailFastCirceSupport

Inherited from FailFastUnmarshaller

Inherited from BaseCirceSupport

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped