Packages

c

edu.cmu.cs.ls.keymaerax.tools.ext

ToolExecutor

class ToolExecutor extends Logging

A tool executor executes commands concurrently on up to poolSize threads.

Linear Supertypes
Logging, LazyLogging, LoggerHolder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ToolExecutor
  2. Logging
  3. LazyLogging
  4. LoggerHolder
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ToolExecutor(poolSize: Int)

Type Members

  1. case class TaskHandle[T](id: String) extends Product with Serializable

    A task handle identifies the task with id and converts into the expected result type T.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def availableWorkers(): Int

    Indicates the number of available worker threads.

  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getResult[T](h: TaskHandle[T]): Option[Either[T, Throwable]]

    Returns the result of the task, or None if the task is not done running.

  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def isDone[T](h: TaskHandle[T]): Boolean

    Indicates whether or not the task is done.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging → LoggerHolder
  16. final val loggerName: String
    Attributes
    protected
    Definition Classes
    LoggerHolder
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def remove[T](h: TaskHandle[T], force: Boolean = false): Unit

    Removes a task from the executor.

    Removes a task from the executor.

    h

    The task handle of the task to remove.

    force

    If true, then the task can be removed even if it is currently running. In that case, the task execution is halted first. Defaults to false.

  21. def schedule[T](task: (Unit) ⇒ T): TaskHandle[T]

    Schedules a task; returns the task ID to query for status and result.

    Schedules a task; returns the task ID to query for status and result.

    task

    The task to run

    returns

    The task handle that ToolExecutor uses to identify this task.

  22. def shutdown(): Unit

    Terminates all running tasks in the pool.

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def wait[T](h: TaskHandle[T], millis: Int = 10): Option[Either[T, Throwable]]

    Waits for task completion (polling).

    Waits for task completion (polling).

    h

    The task handle of the task to wait on

    millis

    The duration in milliseconds to sleep between polling attempts

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

Inherited from Logging

Inherited from LazyLogging

Inherited from LoggerHolder

Inherited from AnyRef

Inherited from Any

Ungrouped