abstract class RpcHandler extends AnyRef

Handler for sendRPC() messages sent by org.apache.spark.network.client.TransportClients.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RpcHandler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new RpcHandler()

Abstract Value Members

  1. abstract def getStreamManager(): StreamManager

    Returns the StreamManager which contains the state about which streams are currently being fetched by a TransportClient.

  2. abstract def receive(client: TransportClient, message: ByteBuffer, callback: RpcResponseCallback): Unit

    Receive a single RPC message.

    Receive a single RPC message. Any exception thrown while in this method will be sent back to the client in string form as a standard RPC failure.

    Neither this method nor #receiveStream will be called in parallel for a single TransportClient (i.e., channel).

    client

    A channel client which enables the handler to make requests back to the sender of this RPC. This will always be the exact same object for a particular channel.

    message

    The serialized bytes of the RPC.

    callback

    Callback which should be invoked exactly once upon success or failure of the RPC.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def channelActive(client: TransportClient): Unit

    Invoked when the channel associated with the given client is active.

  6. def channelInactive(client: TransportClient): Unit

    Invoked when the channel associated with the given client is inactive.

    Invoked when the channel associated with the given client is inactive. No further requests will come from this client.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def exceptionCaught(cause: Throwable, client: TransportClient): Unit
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getMergedBlockMetaReqHandler(): MergedBlockMetaReqHandler
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def receive(client: TransportClient, message: ByteBuffer): Unit

    Receives an RPC message that does not expect a reply.

    Receives an RPC message that does not expect a reply. The default implementation will call "ByteBuffer, RpcResponseCallback)" and log a warning if any of the callback methods are called.

    client

    A channel client which enables the handler to make requests back to the sender of this RPC. This will always be the exact same object for a particular channel.

    message

    The serialized bytes of the RPC.

  20. def receiveStream(client: TransportClient, messageHeader: ByteBuffer, callback: RpcResponseCallback): StreamCallbackWithID

    Receive a single RPC message which includes data that is to be received as a stream.

    Receive a single RPC message which includes data that is to be received as a stream. Any exception thrown while in this method will be sent back to the client in string form as a standard RPC failure.

    Neither this method nor #receive will be called in parallel for a single TransportClient (i.e., channel).

    An error while reading data from the stream (ByteBuffer)) will fail the entire channel. A failure in "post-processing" the stream in org.apache.spark.network.client.StreamCallback#onComplete(String) will result in an rpcFailure, but the channel will remain active.

    client

    A channel client which enables the handler to make requests back to the sender of this RPC. This will always be the exact same object for a particular channel.

    messageHeader

    The serialized bytes of the header portion of the RPC. This is in meant to be relatively small, and will be buffered entirely in memory, to facilitate how the streaming portion should be received.

    callback

    Callback which should be invoked exactly once upon success or failure of the RPC.

    returns

    a StreamCallback for handling the accompanying streaming data

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped