class Executor[S <: Scheduling] extends MetricProvider[S]
An Executor is responsible to actually execute the SideEffect functions for the given Executions.
- Alphabetic
- By Inheritance
- Executor
- MetricProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Executor(platforms: Seq[ExecutionPlatform], xa: XA, logger: Logger, projectName: String, projectVersion: String, logsRetention: Option[Duration] = None)(implicit retryStrategy: RetryStrategy)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allFailingExecutions: Seq[Execution[S]]
- def allFailingJobsWithContext: Set[(Job[S], S.Context)]
- def allRunning: Seq[ExecutionLog]
- def archivedExecutions(queryContexts: Fragment, jobs: Set[String], sort: String, asc: Boolean, offset: Int, limit: Int): IO[Seq[ExecutionLog]]
- def archivedExecutionsSize(jobs: Set[String]): IO[Int]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cancelExecution(executionId: String)(implicit user: User): Unit
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def failingExecutions(filteredJobs: Set[String], sort: String, asc: Boolean, offset: Int, limit: Int): Seq[ExecutionLog]
- def failingExecutionsSize(filteredJobs: Set[String]): Int
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getMetrics(jobIds: Set[String], jobs: Workload[S]): Seq[Metric]
- jobs
the list of jobs ids
- Definition Classes
- Executor → MetricProvider
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def openStreams(executionId: String): Stream[IO, Byte]
- val platforms: Seq[ExecutionPlatform]
- val projectName: String
- val projectVersion: String
- def relaunch(jobs: Set[String])(implicit user: User): Unit
- def relaunchExecs(execs: Set[String])(implicit user: User): Unit
-
def
run(job: Job[S], context: S.Context): (Execution[S], Future[Completed])
Run the SideEffect function of the provided Job for the given SchedulingContext.
Run the SideEffect function of the provided Job for the given SchedulingContext.
- job
The Job to run (actually its SideEffect function)
- context
The SchedulingContext (input of the SideEffect function)
- returns
The created Execution along with the
Future
tracking the execution status.
-
def
runAll(all: Seq[(Job[S], S.Context)]): Seq[(Execution[S], Future[Completed])]
Run the SideEffect function of the provided (Jobs, SchedulingContexts).
Run the SideEffect function of the provided (Jobs, SchedulingContexts).
- all
The Jobs and SchedulingContexts to run.
- returns
The created Executions along with their
Future
tracking the execution status.
- def runningExecutions(filteredJobs: Set[String], sort: String, asc: Boolean, offset: Int, limit: Int): Seq[ExecutionLog]
- def runningExecutions: Seq[(Execution[S], ExecutionStatus)]
- def runningExecutionsSizeTotal(filteredJobs: Set[String]): Int
- def runningExecutionsSizes(filteredJobs: Set[String]): (Int, Int)
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )