Trait

io.gearpump.streaming.task

TaskContext

Related Doc: package task

Permalink

trait TaskContext extends AnyRef

This provides context information for a task.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TaskContext
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def actorOf(props: Props, name: String): ActorRef

    Permalink
  2. abstract def actorOf(props: Props): ActorRef

    Permalink
  3. abstract def appId: Int

    Permalink
  4. abstract def appMaster: ActorRef

    Permalink

    The actorRef of AppMaster

    The actorRef of AppMaster

    returns

    application master's actor reference

  5. abstract def appName: String

    Permalink
  6. abstract def executorId: Int

    Permalink
  7. abstract def logger: Logger

    Permalink

    logger is environment dependant, it should be provided by containing environment.

  8. abstract def output(msg: Message): Unit

    Permalink

    This can be used to output messages to downstream tasks.

    This can be used to output messages to downstream tasks. The data shuffling rule can be decided by Partitioner.

    msg

    message to output

  9. abstract def parallelism: Int

    Permalink

    The task parallelism

    The task parallelism

    For example, we can create 3 source tasks, and 3 sink tasks, the task parallelism is 3 for each.

    This can be useful when reading from partitioned data source. For example, for kafka, there may be 10 partitions, if we have parallelism of 2 for this task, then each task will be responsible to read data from 5 partitions.

    returns

    the parallelism level

  10. abstract def schedule(initialDelay: FiniteDuration, interval: FiniteDuration)(f: ⇒ Unit): Cancellable

    Permalink
  11. abstract def scheduleOnce(initialDelay: FiniteDuration)(f: ⇒ Unit): Cancellable

    Permalink

    akka.actor.ActorRefProvider.scheduleOnce

    akka.actor.ActorRefProvider.scheduleOnce

    initialDelay

    the initial delay

    f

    the function to execute after initial delay

    returns

    the executable

  12. abstract def self: ActorRef

    Permalink

    Please don't use this if possible.

    Please don't use this if possible.

    returns

    self actor ref

  13. abstract def sender: ActorRef

    Permalink

    For managed message(type of Message), the sender only serve as a unique Id, It's address is not something meaningful, you should not use this directly

    For managed message(type of Message), the sender only serve as a unique Id, It's address is not something meaningful, you should not use this directly

    For unmanaged message, the sender represent the sender ActorRef

    returns

    sender

  14. abstract def system: ActorSystem

    Permalink

    Please don't use this if possible

    Please don't use this if possible

    returns

    the actor system

  15. abstract def taskId: TaskId

    Permalink
  16. abstract def upstreamMinClock: TimeStamp

    Permalink

    retrieve upstream min clock from TaskActor

    retrieve upstream min clock from TaskActor

    returns

    the min clock

Concrete 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. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped