Class RemoteRpcInvocation
- java.lang.Object
-
- org.apache.flink.runtime.rpc.messages.RemoteRpcInvocation
-
- All Implemented Interfaces:
Serializable,Message,RpcInvocation
public class RemoteRpcInvocation extends Object implements RpcInvocation, Serializable
Remote rpc invocation message which is used when the actor communication is remote.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
IOExceptionis thrown.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoteRpcInvocation(String declaringClassName, String methodName, Class<?>[] parameterTypes, Object[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getArgs()Returns the arguments of the remote procedure call.StringgetMethodName()Returns the method's name.Class<?>[]getParameterTypes()Returns the method's parameter types.StringtoString()
-
-
-
Constructor Detail
-
RemoteRpcInvocation
public RemoteRpcInvocation(String declaringClassName, String methodName, Class<?>[] parameterTypes, Object[] args) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getMethodName
public String getMethodName()
Description copied from interface:RpcInvocationReturns the method's name.- Specified by:
getMethodNamein interfaceRpcInvocation- Returns:
- Method name
-
getParameterTypes
public Class<?>[] getParameterTypes()
Description copied from interface:RpcInvocationReturns the method's parameter types.- Specified by:
getParameterTypesin interfaceRpcInvocation- Returns:
- Method's parameter types
-
getArgs
public Object[] getArgs()
Description copied from interface:RpcInvocationReturns the arguments of the remote procedure call.- Specified by:
getArgsin interfaceRpcInvocation- Returns:
- Arguments of the remote procedure call
-
-