private EcsSync createEcsSync(String connectString1, String connectString2, int threadCount, boolean enableTimings) throws Exception { SyncConfig syncConfig = new SyncConfig(); syncConfig.setSource(new CasConfig().withConnectionString(connectString1)); syncConfig.setTarget(new CasConfig().withConnectionString(connectString2)); syncConfig.setOptions(new SyncOptions().withThreadCount(threadCount).withRetryAttempts(1).withTimingsEnabled(enableTimings)); EcsSync sync = new EcsSync(); sync.setSyncConfig(syncConfig); return sync; }
syncConfig.setOptions(new SyncOptions().withThreadCount(CAS_THREADS).withSourceListFile(clipFile.getAbsolutePath()) .withDeleteSource(true)); syncConfig.setSource(new CasConfig().withConnectionString(connectString1)); syncConfig.setTarget(new com.emc.ecs.sync.config.storage.TestConfig());
.withSource(new CasConfig().withConnectionString(casConnection)) .withTarget(new com.emc.ecs.sync.config.storage.TestConfig().withDiscardData(false)) .withFilters(Collections.singletonList(filterConfig))
.withSource(new CasConfig().withConnectionString(casConnection)) .withTarget(new com.emc.ecs.sync.config.storage.TestConfig().withDiscardData(false)) .withFilters(Collections.singletonList(filterConfig))
Files.write(listFile.toPath(), cifsCsvData.getBytes(Charsets.UTF_8)); SyncConfig syncConfig = new SyncConfig().withSource(new CasConfig().withConnectionString(connectString)) .withTarget(new com.emc.ecs.sync.config.storage.TestConfig().withDiscardData(false)) .withFilters(Collections.singletonList(new CuaExtractorConfig()));
Files.write(listFile.toPath(), dxCsvData.getBytes(Charsets.UTF_8)); SyncConfig syncConfig = new SyncConfig().withSource(new CasConfig().withConnectionString(connectString)) .withTarget(new com.emc.ecs.sync.config.storage.TestConfig().withDiscardData(false)) .withFilters(Collections.singletonList(new DxExtractorConfig()));