Class

agora.exec.run

LocalRunner

Related Doc: package run

Permalink

class LocalRunner extends ProcessRunner with StrictLogging

Something which can execute RunProcess

Linear Supertypes
StrictLogging, ProcessRunner, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalRunner
  2. StrictLogging
  3. ProcessRunner
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LocalRunner(workDir: Option[Path] = None, defaultEnv: Map[String, String] = Map.empty)(implicit ec: ExecutionContext)

    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. def add(logger: ProcessLogger): LocalRunner

    Permalink

    Adds the given logger to be notified when processes are run

    Adds the given logger to be notified when processes are run

    logger

    the logger to add for all processes used by this runner

    returns

    the local runner instance (builder pattern)

  5. def asByteIterator(runProc: StreamingProcess): Source[ByteString, NotUsed]

    Permalink
  6. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val defaultEnv: Map[String, String]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def execute(builder: ProcessBuilder, proc: RunProcess, iterableLogger: IterableLogger): Future[Int]

    Permalink
  12. def execute(builder: ProcessBuilder, proc: StreamingProcess): IterableLogger

    Permalink
  13. def execute(inputProcess: StreamingProcess): IterableLogger

    Permalink
  14. final def execute(input: ExecuteProcess): Future[ResultSavingRunProcessResponse]

    Permalink

    Executes the command in the provided workspace

    Executes the command in the provided workspace

    input

    the command to execute

    returns

    the execution response

    Definition Classes
    ProcessRunner
  15. final def execute(command: List[String], workspaceId: WorkspaceId): Future[ResultSavingRunProcessResponse]

    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
  16. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  21. def mkLogger(proc: StreamingProcess): IterableLogger

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def remove(logger: ProcessLogger): Unit

    Permalink
  26. def run(input: RunProcess): Result

    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
    LocalRunnerProcessRunner
  27. def runAndSave(proc: ExecuteProcess): Future[ResultSavingRunProcessResponse]

    Permalink
  28. final def stream(input: StreamingProcess): Future[Iterator[String]]

    Permalink

    Execute the command and stream the output

    Execute the command and stream the output

    input

    the command to execute

    returns

    a future of the iterator of results

    Definition Classes
    ProcessRunner
  29. final def stream(cmd: String, theRest: String*): Future[Iterator[String]]

    Permalink

    Execute the command and stream the output

    Execute the command and stream the output

    cmd

    the command to execute

    theRest

    the rest of the command line

    returns

    a future of the iterator of results

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

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

    Permalink
    Definition Classes
    LocalRunner → AnyRef → Any
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withLogger(newLogger: (IterableLogger) ⇒ IterableLogger): LocalRunner

    Permalink

    returns

    a new LocalRunner which will use the logger produced by this function

  36. val workDir: Option[Path]

    Permalink

Inherited from StrictLogging

Inherited from ProcessRunner

Inherited from AnyRef

Inherited from Any

Ungrouped