Search in sources :

Example 16 with GridIoManager

use of org.apache.ignite.internal.managers.communication.GridIoManager in project ignite by apache.

the class GridManagerStopSelfTest method testStopCommunicationManager.

/**
     * @throws Exception If failed.
     */
public void testStopCommunicationManager() throws Exception {
    CommunicationSpi spi = new TcpCommunicationSpi();
    injectLogger(spi);
    ctx.config().setCommunicationSpi(spi);
    ctx.config().setMarshaller(new BinaryMarshaller());
    GridIoManager mgr = new GridIoManager(ctx);
    mgr.onKernalStop(true);
    mgr.stop(false);
}
Also used : CommunicationSpi(org.apache.ignite.spi.communication.CommunicationSpi) TcpCommunicationSpi(org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi) BinaryMarshaller(org.apache.ignite.internal.binary.BinaryMarshaller) GridIoManager(org.apache.ignite.internal.managers.communication.GridIoManager) TcpCommunicationSpi(org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi)

Aggregations

GridIoManager (org.apache.ignite.internal.managers.communication.GridIoManager)16 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)8 ClusterNode (org.apache.ignite.cluster.ClusterNode)8 UUID (java.util.UUID)7 GridMessageListener (org.apache.ignite.internal.managers.communication.GridMessageListener)6 CountDownLatch (java.util.concurrent.CountDownLatch)4 DiscoveryEvent (org.apache.ignite.events.DiscoveryEvent)4 Event (org.apache.ignite.events.Event)4 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)3 IgniteKernal (org.apache.ignite.internal.IgniteKernal)3 IgniteUuid (org.apache.ignite.lang.IgniteUuid)3 Message (org.apache.ignite.plugin.extensions.communication.Message)3 TcpCommunicationSpi (org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi)3 LongAdder8 (org.jsr166.LongAdder8)3 Collection (java.util.Collection)2 HashSet (java.util.HashSet)2 Timer (java.util.Timer)2 TimerTask (java.util.TimerTask)2 Semaphore (java.util.concurrent.Semaphore)2 AtomicReference (java.util.concurrent.atomic.AtomicReference)2