use of org.apache.ignite.internal.processors.continuous.StopRoutineDiscoveryMessage in project ignite by apache.
the class CacheContinuousQueryFilterDeploymentFailedTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
// Failure detection timeout > P2P class loading timeout which is set as network timeout.
cfg.setFailureDetectionTimeout(cfg.getNetworkTimeout() * 2);
((TestTcpDiscoverySpi) cfg.getDiscoverySpi()).discoveryHook(new DiscoveryHook() {
@Override
public void afterDiscovery(DiscoveryCustomMessage customMsg) {
if (customMsg instanceof StopRoutineDiscoveryMessage)
stopRoutineLatch.countDown();
}
});
cfg.setCommunicationSpi(new TestRecordingCommunicationSpi());
return cfg;
}
Aggregations