Batches objects created by a org.apache.spark.streaming.dstream.NetworkReceiver and puts them into appropriately named blocks at regular intervals.
This method will be called to start receiving data.
This method will be called to start receiving data. All your receiver starting code should be implemented by defining this function.
This method will be called to stop receiving data.
This method will be called to stop receiving data.
Conveys a placement preference (hostname) for this receiver.
Pushes a block (as bytes) into the block manager.
Pushes a block (as an ArrayBuffer filled with data) into the block manager.
Starts the receiver.
Starts the receiver. First is accesses all the lazy members to materialize them. Then it calls the user-defined onStart() method to start other threads, etc required to receiver the data.
Stops the receiver.
Stops the receiver. First it interrupts the main receiving thread, that is, the thread that called receiver.start(). Then it calls the user-defined onStop() method to stop other threads and/or do cleanup.
Stops the receiver and reports exception to the tracker.
Stops the receiver and reports exception to the tracker. This should be called whenever an exception is to be handled on any thread of the receiver.
Abstract class of a receiver that can be run on worker nodes to receive external data. See org.apache.spark.streaming.dstream.NetworkInputDStream for an explanation.