Class/Object

org.apache.spark.examples.streaming

CustomReceiver

Related Docs: object CustomReceiver | package streaming

Permalink

class CustomReceiver extends Receiver[String] with internal.Logging

Linear Supertypes
internal.Logging, Receiver[String], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CustomReceiver
  2. Logging
  3. Receiver
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CustomReceiver(host: String, port: Int)

    Permalink

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. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean = false): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  12. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def isStarted(): Boolean

    Permalink

    Check if the receiver has started or not.

    Check if the receiver has started or not.

    Definition Classes
    Receiver
  15. def isStopped(): Boolean

    Permalink

    Check if receiver has been marked for stopping.

    Check if receiver has been marked for stopping. Use this to identify when the receiving of data should be stopped.

    Definition Classes
    Receiver
  16. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  17. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  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 onStart(): Unit

    Permalink

    This method is called by the system when the receiver is started.

    This method is called by the system when the receiver is started. This function must initialize all resources (threads, buffers, etc.) necessary for receiving data. This function must be non-blocking, so receiving the data must occur on a different thread. Received data can be stored with Spark by calling store(data).

    If there are errors in threads started here, then following options can be done (i) reportError(...) can be called to report the error to the driver. The receiving of data will continue uninterrupted. (ii) stop(...) can be called to stop receiving data. This will call onStop() to clear up all resources allocated (threads, buffers, etc.) during onStart(). (iii) restart(...) can be called to restart the receiver. This will call onStop() immediately, and then onStart() after a delay.

    Definition Classes
    CustomReceiverReceiver
  33. def onStop(): Unit

    Permalink

    This method is called by the system when the receiver is stopped.

    This method is called by the system when the receiver is stopped. All resources (threads, buffers, etc.) set up in onStart() must be cleaned up in this method.

    Definition Classes
    CustomReceiverReceiver
  34. def preferredLocation: Option[String]

    Permalink

    Override this to specify a preferred location (hostname).

    Override this to specify a preferred location (hostname).

    Definition Classes
    Receiver
  35. def reportError(message: String, throwable: Throwable): Unit

    Permalink

    Report exceptions in receiving data.

    Report exceptions in receiving data.

    Definition Classes
    Receiver
  36. def restart(message: String, error: Throwable, millisecond: Int): Unit

    Permalink

    Restart the receiver.

    Restart the receiver. This method schedules the restart and returns immediately. The stopping and subsequent starting of the receiver (by calling onStop() and onStart()) is performed asynchronously in a background thread.

    Definition Classes
    Receiver
  37. def restart(message: String, error: Throwable): Unit

    Permalink

    Restart the receiver.

    Restart the receiver. This method schedules the restart and returns immediately. The stopping and subsequent starting of the receiver (by calling onStop() and onStart()) is performed asynchronously in a background thread. The delay between the stopping and the starting is defined by the Spark configuration spark.streaming.receiverRestartDelay. The message and exception will be reported to the driver.

    Definition Classes
    Receiver
  38. def restart(message: String): Unit

    Permalink

    Restart the receiver.

    Restart the receiver. This method schedules the restart and returns immediately. The stopping and subsequent starting of the receiver (by calling onStop() and onStart()) is performed asynchronously in a background thread. The delay between the stopping and the starting is defined by the Spark configuration spark.streaming.receiverRestartDelay. The message will be reported to the driver.

    Definition Classes
    Receiver
  39. def stop(message: String, error: Throwable): Unit

    Permalink

    Stop the receiver completely due to an exception

    Stop the receiver completely due to an exception

    Definition Classes
    Receiver
  40. def stop(message: String): Unit

    Permalink

    Stop the receiver completely.

    Stop the receiver completely.

    Definition Classes
    Receiver
  41. val storageLevel: StorageLevel

    Permalink
    Definition Classes
    Receiver
  42. def store(bytes: ByteBuffer, metadata: Any): Unit

    Permalink

    Store the bytes of received data as a data block into Spark's memory.

    Store the bytes of received data as a data block into Spark's memory. The metadata will be associated with this block of data for being used in the corresponding InputDStream.

    Definition Classes
    Receiver
  43. def store(bytes: ByteBuffer): Unit

    Permalink

    Store the bytes of received data as a data block into Spark's memory.

    Store the bytes of received data as a data block into Spark's memory. Note that the data in the ByteBuffer must be serialized using the same serializer that Spark is configured to use.

    Definition Classes
    Receiver
  44. def store(dataIterator: Iterator[String], metadata: Any): Unit

    Permalink

    Store an iterator of received data as a data block into Spark's memory.

    Store an iterator of received data as a data block into Spark's memory. The metadata will be associated with this block of data for being used in the corresponding InputDStream.

    Definition Classes
    Receiver
  45. def store(dataIterator: Iterator[String]): Unit

    Permalink

    Store an iterator of received data as a data block into Spark's memory.

    Store an iterator of received data as a data block into Spark's memory.

    Definition Classes
    Receiver
  46. def store(dataIterator: Iterator[String], metadata: Any): Unit

    Permalink

    Store an iterator of received data as a data block into Spark's memory.

    Store an iterator of received data as a data block into Spark's memory. The metadata will be associated with this block of data for being used in the corresponding InputDStream.

    Definition Classes
    Receiver
  47. def store(dataIterator: Iterator[String]): Unit

    Permalink

    Store an iterator of received data as a data block into Spark's memory.

    Store an iterator of received data as a data block into Spark's memory.

    Definition Classes
    Receiver
  48. def store(dataBuffer: ArrayBuffer[String], metadata: Any): Unit

    Permalink

    Store an ArrayBuffer of received data as a data block into Spark's memory.

    Store an ArrayBuffer of received data as a data block into Spark's memory. The metadata will be associated with this block of data for being used in the corresponding InputDStream.

    Definition Classes
    Receiver
  49. def store(dataBuffer: ArrayBuffer[String]): Unit

    Permalink

    Store an ArrayBuffer of received data as a data block into Spark's memory.

    Store an ArrayBuffer of received data as a data block into Spark's memory.

    Definition Classes
    Receiver
  50. def store(dataItem: String): Unit

    Permalink

    Store a single item of received data to Spark's memory.

    Store a single item of received data to Spark's memory. These single items will be aggregated together into data blocks before being pushed into Spark's memory.

    Definition Classes
    Receiver
  51. def streamId: Int

    Permalink

    Get the unique identifier the receiver input stream that this receiver is associated with.

    Get the unique identifier the receiver input stream that this receiver is associated with.

    Definition Classes
    Receiver
  52. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from internal.Logging

Inherited from Receiver[String]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped