Search in sources :

Example 1 with DiscoverySpiHistorySupport

use of org.apache.ignite.spi.discovery.DiscoverySpiHistorySupport in project ignite by apache.

the class TcpDiscoverySnapshotHistoryTest method testHistorySupported.

/**
     * @throws Exception If any error occurs.
     */
public void testHistorySupported() throws Exception {
    try {
        final Ignite g = startGrid();
        DiscoverySpi spi = g.configuration().getDiscoverySpi();
        DiscoverySpiHistorySupport ann = U.getAnnotation(spi.getClass(), DiscoverySpiHistorySupport.class);
        assertNotNull("Spi does not have annotation for history support", ann);
        assertTrue("History support is disabled for current spi", ann.value());
    } finally {
        stopGrid();
    }
}
Also used : DiscoverySpi(org.apache.ignite.spi.discovery.DiscoverySpi) DiscoverySpiHistorySupport(org.apache.ignite.spi.discovery.DiscoverySpiHistorySupport) Ignite(org.apache.ignite.Ignite)

Aggregations

Ignite (org.apache.ignite.Ignite)1 DiscoverySpi (org.apache.ignite.spi.discovery.DiscoverySpi)1 DiscoverySpiHistorySupport (org.apache.ignite.spi.discovery.DiscoverySpiHistorySupport)1