You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/04/09 15:24:24 UTC

[GitHub] [ignite] NSAmelchev commented on a change in pull request #7647: IGNITE-12879 Refactors test configuration of discovery messages interceptors.

NSAmelchev commented on a change in pull request #7647: IGNITE-12879 Refactors test configuration of discovery messages interceptors.
URL: https://github.com/apache/ignite/pull/7647#discussion_r406285358
 
 

 ##########
 File path: modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TestTcpDiscoverySpi.java
 ##########
 @@ -44,4 +52,19 @@
     @Override public void simulateNodeFailure() {
         super.simulateNodeFailure();
     }
+
+    /** {@inheritDoc} */
+    @Override public void setListener(@Nullable DiscoverySpiListener lsnr) {
+        super.setListener(lsnr ==  null || discoveryHooks == null ? lsnr : wrap(lsnr, discoveryHooks));
+    }
+
+    /**
+     * Sets interceptors of discovery messages.
+     *
+     * @param discoveryHooks Interceptors of discovery messages.
+     */
+    @SuppressWarnings("AssignmentOrReturnOfFieldWithMutableType")
+    public void discoveryHooks(DiscoveryHook... discoveryHooks) {
 
 Review comment:
   Why array needed?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services