Class

com.coxautodata.waimak.dataflow

SequentialScheduler

Related Doc: package dataflow

Permalink

class SequentialScheduler extends ActionScheduler with Logging

Executes only one action at a time.

Created by Alexei Perelighin on 2018/07/06

Linear Supertypes
Logging, ActionScheduler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SequentialScheduler
  2. Logging
  3. ActionScheduler
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SequentialScheduler(toRun: Option[(DataFlowAction, DataFlowEntities, FlowContext)])

    Permalink

    toRun

    scheduled action. If None, than nothing is scheduled

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 availableExecutionPools: Option[Set[String]]

    Permalink

    finds execution pools that have slots to run actions.

    finds execution pools that have slots to run actions.

    returns

    None if none of the pools are available for scheduling and Some(Set[AVAILABLE POOL NAME]) - all pools that are available for scheduling

    Definition Classes
    SequentialSchedulerActionScheduler
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def dropRunning(poolNames: Set[String], from: Seq[DataFlowAction]): Seq[DataFlowAction]

    Permalink

    Removes actions that are already running in the specified set pools.

    Removes actions that are already running in the specified set pools.

    poolNames

    pool names to which the from actions belong to

    from

    list of actions from poolNames that DataFlow knows have not been marked as executed and can be scheduled

    returns

    list of actions that are not currently running

    Definition Classes
    SequentialSchedulerActionScheduler
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  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. def hasRunningActions: Boolean

    Permalink

    Checks if there are actions running at all, regardless of the execution pool.

    Checks if there are actions running at all, regardless of the execution pool.

    returns

    true if at least one action is running in any of the pools

    Definition Classes
    SequentialSchedulerActionScheduler
  13. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  15. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  16. def logAndReturn[A](a: A, msg: String, level: Level): A

    Permalink

    Takes a value of type A and a msg to log, returning a and logging the message at the desired level

    Takes a value of type A and a msg to log, returning a and logging the message at the desired level

    returns

    a

    Definition Classes
    Logging
  17. def logAndReturn[A](a: A, message: (A) ⇒ String, level: Level): A

    Permalink

    Takes a value of type A and a function message from A to String, logs the value of invoking message(a) at the level described by the level parameter

    Takes a value of type A and a function message from A to String, logs the value of invoking message(a) at the level described by the level parameter

    returns

    a

    Definition Classes
    Logging
    Example:
    1. logAndReturn(1, (num: Int) => s"number: $num", Info)
      // In the log we would see a log corresponding to "number 1"
  18. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def schedule(poolName: String, action: DataFlowAction, entities: DataFlowEntities, flowContext: FlowContext, flowReporter: FlowReporter): ActionScheduler

    Permalink

    Submits action into the specified execution pool.

    Submits action into the specified execution pool.

    poolName

    pool into which to schedule the action

    action

    action to schedule

    entities

    action labels that have data

    flowContext

    object that allows access to the context of the flow and application

    flowReporter

    object that is used to signal start and end of the action execution

    Definition Classes
    SequentialSchedulerActionScheduler
  33. def shutDown(): Try[ActionScheduler]

    Permalink

    Executors must call it before exiting the execution of the flow to release resources.

    Executors must call it before exiting the execution of the flow to release resources.

    Definition Classes
    SequentialSchedulerActionScheduler
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. val toRun: Option[(DataFlowAction, DataFlowEntities, FlowContext)]

    Permalink

    scheduled action.

    scheduled action. If None, than nothing is scheduled

  36. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def waitToFinish(flowContext: FlowContext, flowReporter: FlowReporter): (ActionScheduler, Seq[(DataFlowAction, Try[ActionResult])])

    Permalink

    Locks and waits for at least one action to finish running, can return more than one action if they have finished and their results are available.

    Locks and waits for at least one action to finish running, can return more than one action if they have finished and their results are available.

    flowContext

    object that allows access to the context of the flow and application

    flowReporter

    object that is used to signal start and end of the action execution

    Definition Classes
    SequentialSchedulerActionScheduler

Inherited from Logging

Inherited from ActionScheduler

Inherited from AnyRef

Inherited from Any

Ungrouped