Search in sources :

Example 21 with IgniteDiscoverySpi

use of org.apache.ignite.internal.managers.discovery.IgniteDiscoverySpi in project ignite by apache.

the class DiscoverySpiDataExchangeTest method optimize.

/**
 * {@inheritDoc}
 */
@Override
protected IgniteConfiguration optimize(IgniteConfiguration cfg) throws IgniteCheckedException {
    IgniteConfiguration cfg0 = super.optimize(cfg);
    cfg0.setDiscoverySpi(new DelegatedDiscoverySpi((IgniteDiscoverySpi) cfg.getDiscoverySpi()));
    return cfg0;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) IgniteDiscoverySpi(org.apache.ignite.internal.managers.discovery.IgniteDiscoverySpi)

Aggregations

IgniteDiscoverySpi (org.apache.ignite.internal.managers.discovery.IgniteDiscoverySpi)21 Ignite (org.apache.ignite.Ignite)15 CountDownLatch (java.util.concurrent.CountDownLatch)10 Test (org.junit.Test)10 Event (org.apache.ignite.events.Event)9 DiscoverySpiTestListener (org.apache.ignite.internal.DiscoverySpiTestListener)7 GridCommonAbstractTest (org.apache.ignite.testframework.junits.common.GridCommonAbstractTest)7 UUID (java.util.UUID)6 IgniteClientDisconnectedException (org.apache.ignite.IgniteClientDisconnectedException)5 CacheException (javax.cache.CacheException)4 IgniteException (org.apache.ignite.IgniteException)4 DiscoverySpi (org.apache.ignite.spi.discovery.DiscoverySpi)4 ArrayList (java.util.ArrayList)3 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)3 CacheEntryEvent (javax.cache.event.CacheEntryEvent)3 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)3 IgniteInternalFuture (org.apache.ignite.internal.IgniteInternalFuture)3 TestRecordingCommunicationSpi (org.apache.ignite.internal.TestRecordingCommunicationSpi)3 TcpDiscoverySpi (org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)3 IOException (java.io.IOException)2