class NoOpRpcHandler extends RpcHandler
An RpcHandler suitable for a client-only TransportContext, which cannot receive RPCs.
- Alphabetic
- By Inheritance
- NoOpRpcHandler
- RpcHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new NoOpRpcHandler()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
channelActive(client: TransportClient): Unit
Invoked when the channel associated with the given client is active.
Invoked when the channel associated with the given client is active.
- Definition Classes
- RpcHandler
-
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.
- Definition Classes
- RpcHandler
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exceptionCaught(cause: Throwable, client: TransportClient): Unit
- Definition Classes
- RpcHandler
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getMergedBlockMetaReqHandler(): MergedBlockMetaReqHandler
- Definition Classes
- RpcHandler
-
def
getStreamManager(): StreamManager
Returns the StreamManager which contains the state about which streams are currently being fetched by a TransportClient.
Returns the StreamManager which contains the state about which streams are currently being fetched by a TransportClient.
- Definition Classes
- NoOpRpcHandler → RpcHandler
- Annotations
- @Override()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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.
- Definition Classes
- NoOpRpcHandler → RpcHandler
- Annotations
- @Override()
-
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.
- Definition Classes
- RpcHandler
-
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 inorg.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
- Definition Classes
- RpcHandler
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()