/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); cfg.setDeploymentMode(CONTINUOUS); if (GRID_NAME.equals(gridName)) cfg.setCacheConfiguration(); else cfg.setCacheConfiguration(cacheConfiguration()); TcpDiscoverySpi disco = new TcpDiscoverySpi(); disco.setIpFinder(IP_FINDER); cfg.setDiscoverySpi(disco); return cfg; }
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(gridName); cfg.setPeerClassLoadingEnabled(false); cfg.setDeploymentMode(depMode); if (initGar) { UriDeploymentSpi depSpi = new UriDeploymentSpi(); depSpi.setUriList(Collections.singletonList(garFile)); cfg.setDeploymentSpi(depSpi); } ((TcpDiscoverySpi) cfg.getDiscoverySpi()).setHeartbeatFrequency(500); return cfg; }