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.
Constructor and Description |
---|
RemoteRpcInvocation(String declaringClassName,
String methodName,
Class<?>[] parameterTypes,
Object[] args) |
Modifier and Type | Method and Description |
---|---|
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, wait
convertRpcToString
public RemoteRpcInvocation(String declaringClassName, String methodName, Class<?>[] parameterTypes, Object[] args) throws IOException
IOException
public String getMethodName()
RpcInvocation
getMethodName
in interface RpcInvocation
public Class<?>[] getParameterTypes()
RpcInvocation
getParameterTypes
in interface RpcInvocation
public Object[] getArgs()
RpcInvocation
getArgs
in interface RpcInvocation
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.