public class RemoteRpcInvocation extends Object implements RpcInvocation, Serializable
In order to fail fast and report an appropriate error message to the user, the method name, the
parameter types and the arguments are eagerly serialized. In case the invocation call
contains a non-serializable object, then an IOException
is thrown.
构造器和说明 |
---|
RemoteRpcInvocation(String methodName,
Class<?>[] parameterTypes,
Object[] args) |
限定符和类型 | 方法和说明 |
---|---|
Object[] |
getArgs()
Returns the arguments of the remote procedure call
|
String |
getMethodName()
Returns the method's name.
|
Class<?>[] |
getParameterTypes()
Returns the method's parameter types
|
long |
getSize()
Size (#bytes of the serialized data) of the rpc invocation message.
|
String |
toString() |
public RemoteRpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] args) throws IOException
IOException
public String getMethodName() throws IOException, ClassNotFoundException
RpcInvocation
getMethodName
在接口中 RpcInvocation
IOException
- if the rpc invocation message is a remote message and could not be deserializedClassNotFoundException
- if the rpc invocation message is a remote message and contains
serialized classes which cannot be found on the receiving sidepublic Class<?>[] getParameterTypes() throws IOException, ClassNotFoundException
RpcInvocation
getParameterTypes
在接口中 RpcInvocation
IOException
- if the rpc invocation message is a remote message and could not be deserializedClassNotFoundException
- if the rpc invocation message is a remote message and contains
serialized classes which cannot be found on the receiving sidepublic Object[] getArgs() throws IOException, ClassNotFoundException
RpcInvocation
getArgs
在接口中 RpcInvocation
IOException
- if the rpc invocation message is a remote message and could not be deserializedClassNotFoundException
- if the rpc invocation message is a remote message and contains
serialized classes which cannot be found on the receiving sidepublic long getSize()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.