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();
}
}
Aggregations