public abstract class ReceiverInputDStream<T> extends InputDStream<T>
InputDStream
that has to start a receiver on worker nodes to receive external data.
Specific implementations of NetworkInputDStream must
define the getReceiver() function that gets the receiver object of type
Receiver that will be sent
to the workers to receive data.| Constructor and Description |
|---|
ReceiverInputDStream(StreamingContext ssc_,
scala.reflect.ClassTag<T> evidence$1) |
| Modifier and Type | Method and Description |
|---|---|
scala.Option<RDD<T>> |
compute(Time validTime)
Ask ReceiverInputTracker for received data blocks and generates RDDs with them.
|
abstract Receiver<T> |
getReceiver()
Gets the receiver object that will be sent to the worker nodes
to receive data.
|
int |
id()
This is an unique identifier for the network input stream.
|
void |
start()
Method called to start receiving data.
|
void |
stop()
Method called to stop receiving data.
|
dependencies, lastValidTime, slideDurationcache, checkpoint, checkpointData, checkpointDuration, context, count, countByValue, countByValueAndWindow, countByWindow, creationSite, filter, flatMap, foreach, foreach, foreachRDD, foreachRDD, generatedRDDs, getCreationSite, glom, graph, map, mapPartitions, mustCheckpoint, persist, persist, print, reduce, reduceByWindow, reduceByWindow, rememberDuration, repartition, saveAsObjectFiles, saveAsTextFiles, slice, slice, ssc, storageLevel, transform, transform, transformWith, transformWith, union, window, window, zeroTimeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialized, initializeIfNecessary, initializeLogging, initLock, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic ReceiverInputDStream(StreamingContext ssc_, scala.reflect.ClassTag<T> evidence$1)
public int id()
public abstract Receiver<T> getReceiver()
public void start()
InputDStreamstart in class InputDStream<T>public void stop()
InputDStreamstop in class InputDStream<T>