org.apache.spark.streaming.dstream

NetworkReceiver

abstract class NetworkReceiver[T] extends Serializable with Logging

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.

Linear Supertypes
Logging, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NetworkReceiver
  2. Logging
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NetworkReceiver()(implicit arg0: ClassTag[T])

Type Members

  1. class BlockGenerator extends Serializable with Logging

    Batches objects created by a org.apache.spark.streaming.dstream.NetworkReceiver and puts them into appropriately named blocks at regular intervals.

Abstract Value Members

  1. abstract def onStart(): Unit

    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.

    Attributes
    protected
  2. abstract def onStop(): Unit

    This method will be called to stop receiving data.

    This method will be called to stop receiving data.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. lazy val actor: ActorRef

    Attributes
    protected
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. lazy val env: SparkEnv

    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def getLocationPreference(): Option[String]

    Conveys a placement preference (hostname) for this receiver.

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  18. def log: Logger

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

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

    Attributes
    protected
    Definition Classes
    Logging
  21. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  22. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  23. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  24. def logInfo(msg: ⇒ String): Unit

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

    Attributes
    protected
    Definition Classes
    Logging
  26. def logTrace(msg: ⇒ String): Unit

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

    Attributes
    protected
    Definition Classes
    Logging
  28. def logWarning(msg: ⇒ String): Unit

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

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def pushBlock(blockId: BlockId, bytes: ByteBuffer, metadata: Any, level: StorageLevel): Unit

    Pushes a block (as bytes) into the block manager.

  33. def pushBlock(blockId: BlockId, arrayBuffer: ArrayBuffer[T], metadata: Any, level: StorageLevel): Unit

    Pushes a block (as an ArrayBuffer filled with data) into the block manager.

  34. lazy val receivingThread: Thread

    Attributes
    protected
  35. def setStreamId(id: Int): Unit

    Attributes
    protected[org.apache.spark.streaming]
  36. def start(): Unit

    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.

  37. def stop(): Unit

    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.

  38. def stopOnError(e: Exception): Unit

    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.

    Attributes
    protected
  39. var streamId: Int

    Attributes
    protected
  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  41. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped