Class/Object

agora.exec.client

RemoteRunner

Related Docs: object RemoteRunner | package client

Permalink

case class RemoteRunner(exchange: ExchangeClient, defaultFrameLength: Int, requestWorkOnFailure: Boolean, keyOpt: Option[SubscriptionKey] = None)(implicit uploadTimeout: FiniteDuration) extends ProcessRunner with AutoCloseable with FailFastCirceSupport with LazyLogging with Product with Serializable

A RemoteRunner is a client of the execution routes which goes via the exchange.

This wouldn't typically require such dedicated code, but we have to consider upload scenarios where we want to first submit a job which selects a worker, then upload the data to that worker, and subsequently request that worker

Linear Supertypes
Serializable, Serializable, Product, Equals, LazyLogging, FailFastCirceSupport, FailFastUnmarshaller, BaseCirceSupport, AutoCloseable, ProcessRunner, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RemoteRunner
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LazyLogging
  7. FailFastCirceSupport
  8. FailFastUnmarshaller
  9. BaseCirceSupport
  10. AutoCloseable
  11. ProcessRunner
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RemoteRunner(exchange: ExchangeClient, defaultFrameLength: Int, requestWorkOnFailure: Boolean, keyOpt: Option[SubscriptionKey] = None)(implicit uploadTimeout: FiniteDuration)

    Permalink

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink
    Definition Classes
    RemoteRunner → AutoCloseable
  7. val defaultFrameLength: Int

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. val exchange: ExchangeClient

    Permalink
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  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 keyOpt: Option[SubscriptionKey]

    Permalink
  16. lazy val logger: Logger

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val requestWorkOnFailure: Boolean

    Permalink
  22. def run(input: RunProcess): Future[RunProcessResult]

    Permalink

    Execute the RunProcess, returning a future of the std out

    Execute the RunProcess, returning a future of the std out

    returns

    the stdout as an iterator of lines in a Future which completes when the job does

    Definition Classes
    RemoteRunnerProcessRunner
  23. final def run(command: String, args: String*): Future[RunProcessResult]

    Permalink

    Executes the command in the provided workspace

    Executes the command in the provided workspace

    command

    the command to execute

    args

    the command arguments

    returns

    the execution response

    Definition Classes
    ProcessRunner
  24. final def run(command: List[String], workspaceId: WorkspaceId): Future[RunProcessResult]

    Permalink

    Executes the command in the provided workspace

    Executes the command in the provided workspace

    command

    the command to execute

    workspaceId

    the workspace under which the command is run

    returns

    the execution response

    Definition Classes
    ProcessRunner
  25. def runAndSelect(proc: RunProcess): Future[SelectionOutput]

    Permalink

    Executes the job via the exchange, returning an ExecutionClient which can be used to upload/execute jobs to the worker which produced the output.

    Executes the job via the exchange, returning an ExecutionClient which can be used to upload/execute jobs to the worker which produced the output.

    It's called 'runAndSelect' because it can be used to select a worker which can then be used to ensure the same workspace is used on the same server.

    proc

    the job to execute

    returns

    both the subscription key client and the job output

  26. final def runAndSelect(cmd: String, theRest: String*): Future[SelectionOutput]

    Permalink
  27. final def save(proc: RunProcess): Future[FileResult]

    Permalink
    Definition Classes
    ProcessRunner
  28. final def stream(command: String, args: String*): Future[StreamingResult]

    Permalink
    Definition Classes
    ProcessRunner
  29. final def stream(proc: RunProcess): Future[StreamingResult]

    Permalink
    Definition Classes
    ProcessRunner
  30. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def withSubscription(key: SubscriptionKey): RemoteRunner

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from FailFastCirceSupport

Inherited from FailFastUnmarshaller

Inherited from BaseCirceSupport

Inherited from AutoCloseable

Inherited from ProcessRunner

Inherited from AnyRef

Inherited from Any

Ungrouped