You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "PetrovMikhail (Jira)" <ji...@apache.org> on 2020/04/09 09:37:00 UTC

[jira] [Created] (IGNITE-12881) Add test discovery messages interception configuration through TestTcpDiscoverySpi.

PetrovMikhail created IGNITE-12881:
--------------------------------------

             Summary: Add test discovery messages interception configuration through TestTcpDiscoverySpi.
                 Key: IGNITE-12881
                 URL: https://issues.apache.org/jira/browse/IGNITE-12881
             Project: Ignite
          Issue Type: Improvement
            Reporter: PetrovMikhail
            Assignee: PetrovMikhail


It's needed to add the ability to configure multiple DiscoveryHook instances through TestTcpDiscoverySpi for discovery messages interception. It helps to avoid redefinition of the TestTcpDiscoverySpi and its reconfiguration. The current approach is as follows:
{code:java}
TcpDiscoverySpi spi = new TestTcpDiscoverySpi() {
    @Override public void setListener(@Nullable DiscoverySpiListener lsnr) {
        super.setListener(DiscoverySpiListenerWrapper.wrap(lsnr, discoveryHook));
    }
};

spi.setIpFinder(((TcpDiscoverySpi)cfg.getDiscoverySpi()).getIpFinder());
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)