/** {@inheritDoc} */ @Override protected GridConfiguration getConfiguration(String gridName) throws Exception { GridConfiguration cfg = super.getConfiguration(gridName); cfg.setCacheConfiguration( cacheConfiguration(META_CACHE_NAME), cacheConfiguration(DATA_CACHE_NAME)); GridTcpDiscoverySpi discoSpi = new GridTcpDiscoverySpi(); discoSpi.setIpFinder(IP_FINDER); cfg.setDiscoverySpi(discoSpi); GridGgfsConfiguration ggfsCfg = new GridGgfsConfiguration(); ggfsCfg.setMetaCacheName(META_CACHE_NAME); ggfsCfg.setDataCacheName(DATA_CACHE_NAME); ggfsCfg.setName("ggfs"); ggfsCfg.setBlockSize(CFG_BLOCK_SIZE); ggfsCfg.setFragmentizerEnabled(true); cfg.setGgfsConfiguration(ggfsCfg); return cfg; }
/** {@inheritDoc} */ @Override protected GridConfiguration getConfiguration(String gridName) throws Exception { GridConfiguration cfg = super.getConfiguration(gridName); GridTcpDiscoverySpi discoSpi = new GridTcpDiscoverySpi(); discoSpi.setIpFinder(IP_FINDER); cfg.setDiscoverySpi(discoSpi); g1GgfsCfg1.setName("g1GgfsCfg1"); g1GgfsCfg1.setDataCacheName(dataCache1Name); g1GgfsCfg1.setMetaCacheName(metaCache1Name); g1GgfsCfg2.setName("g1GgfsCfg2"); g1GgfsCfg2.setDataCacheName(dataCache2Name); g1GgfsCfg2.setMetaCacheName(metaCache2Name); cfg.setGgfsConfiguration(g1GgfsCfg1, g1GgfsCfg2); cfg.setLocalHost("127.0.0.1"); return cfg; }