Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/2401#discussion_r75690285
--- Diff:
flink-runtime/src/test/java/org/apache/flink/runtime/rpc/RpcCompletenessTest.java
---
@@ -337,4 +337,25 @@ private static boolean isRpcTimeout(Annotation[]
annotations) {
throw new RuntimeException("Could not retrive basic
type information for primitive type " + primitveType + '.');
}
}
+
+ /**
+ * Extract all rpc methods defined by the gateway interface
+ * @param interfaceClass the given rpc gateway interface
+ * @return all methods defined by the given interface
+ */
+ private List<Method> getRpcMethodsFromGateway(Class<? extends
RpcGateway> interfaceClass) {
+ if(!interfaceClass.isInterface()) {
+ fail(interfaceClass.getName() + "is not a interface");
+ }
+ ArrayList<Method> allMethods = new ArrayList<>();
+ for(Method method : interfaceClass.getDeclaredMethods()) {
+ if (!method.isAnnotationPresent(NativeMethod.class)) {
+ allMethods.add(method);
+ }
+ }
--- End diff --
line break missing
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---