public class RemoteRpcInvocation extends Object implements RpcInvocation, Serializable
In order to fail fast and report an appropriate error message to the user, we check that the
parameter types and the arguments are serializable. In case the invocation call contains a
non-serializable object, then an IOException is thrown.
| 构造器和说明 |
|---|
RemoteRpcInvocation(String declaringClassName,
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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconvertRpcToStringpublic RemoteRpcInvocation(String declaringClassName, String methodName, Class<?>[] parameterTypes, Object[] args) throws IOException
IOExceptionpublic String getMethodName()
RpcInvocationgetMethodName 在接口中 RpcInvocationpublic Class<?>[] getParameterTypes()
RpcInvocationgetParameterTypes 在接口中 RpcInvocationpublic Object[] getArgs()
RpcInvocationgetArgs 在接口中 RpcInvocationCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.