Minor updated based on comments on PR 277.
This commit is contained in:
parent
ec71b445ad
commit
3ddbdbfbc7
|
@ -24,7 +24,8 @@ import scala.collection.mutable.HashSet
|
|||
import org.apache.spark.streaming._
|
||||
|
||||
/**
|
||||
* This class drives the generation of Spark jobs from the DStreams.
|
||||
* This class schedules jobs to be run on Spark. It uses the JobGenerator to generate
|
||||
* the jobs and runs them using a thread pool. Number of threads
|
||||
*/
|
||||
private[streaming]
|
||||
class JobScheduler(val ssc: StreamingContext) extends Logging {
|
||||
|
@ -91,6 +92,7 @@ class JobScheduler(val ssc: StreamingContext) extends Logging {
|
|||
}
|
||||
}
|
||||
|
||||
private[streaming]
|
||||
class JobHandler(job: Job) extends Runnable {
|
||||
def run() {
|
||||
beforeJobStart(job)
|
||||
|
|
|
@ -20,6 +20,9 @@ package org.apache.spark.streaming.scheduler
|
|||
import scala.collection.mutable.HashSet
|
||||
import org.apache.spark.streaming.Time
|
||||
|
||||
/** Class representing a set of Jobs
|
||||
* belong to the same batch.
|
||||
*/
|
||||
private[streaming]
|
||||
case class JobSet(time: Time, jobs: Seq[Job]) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue