Class

org.apache.spark.sql.streaming

RabbitMQReceiver

Related Doc: package streaming

Permalink

final class RabbitMQReceiver[T, D] extends Receiver[T] with Logging

Linear Supertypes
Logging, Receiver[T], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RabbitMQReceiver
  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 RabbitMQReceiver(options: Map[String, String])(implicit arg0: ClassTag[T], arg1: ClassTag[D])

    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(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  12. final def isDebugEnabled: Boolean

    Permalink
    Definition Classes
    Logging
  13. final def isInfoEnabled: Boolean

    Permalink
    Definition Classes
    Logging
  14. final def isInstanceOf[T0]: Boolean

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

    Permalink

    Check if the receiver has started or not.

    Check if the receiver has started or not.

    Definition Classes
    Receiver
  16. 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
  17. final def isTraceEnabled: Boolean

    Permalink
    Definition Classes
    Logging
  18. final var levelFlags: Int

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  21. def logDebug(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  22. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  23. def logError(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  24. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  25. def logInfo(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  26. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  28. def logTrace(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  29. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Definition Classes
    Logging
  30. def logWarning(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Logging
  31. final var log_: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  35. 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
    RabbitMQReceiverReceiver
  36. 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
    RabbitMQReceiverReceiver
  37. def preferredLocation: Option[String]

    Permalink

    Override this to specify a preferred location (hostname).

    Override this to specify a preferred location (hostname).

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

    Permalink

    Report exceptions in receiving data.

    Report exceptions in receiving data.

    Definition Classes
    Receiver
  39. def resetLogger(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. 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
  41. 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
  42. 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
  43. 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
  44. def stop(message: String): Unit

    Permalink

    Stop the receiver completely.

    Stop the receiver completely.

    Definition Classes
    Receiver
  45. val storageLevel: StorageLevel

    Permalink
    Definition Classes
    Receiver
  46. 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
  47. 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
  48. def store(dataIterator: Iterator[T], 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
  49. def store(dataIterator: Iterator[T]): 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
  50. def store(dataIterator: Iterator[T], 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
  51. def store(dataIterator: Iterator[T]): 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
  52. def store(dataBuffer: ArrayBuffer[T], 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
  53. def store(dataBuffer: ArrayBuffer[T]): 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
  54. def store(dataItem: T): 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
  55. 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
  56. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from Logging

Inherited from Receiver[T]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped