COPY_OF_FAT_CLIENT_CONFIG_FILE = new File(TestUtils.createTempDir(),
"fat-client-config" + System.currentTimeMillis()
+ ".avro");
FileUtils.copyFile(src, COPY_OF_FAT_CLIENT_CONFIG_FILE);
CoordinatorConfig config = new CoordinatorConfig();
List<String> bootstrapUrls = new ArrayList<String>();
socketUrl = servers[0].getIdentityNode().getSocketUrl().toString();
bootstrapUrls.add(socketUrl);
System.out.println("\n\n************************ Starting the Coordinator *************************");
config.setBootstrapURLs(bootstrapUrls);
config.setFatClientConfigPath(COPY_OF_FAT_CLIENT_CONFIG_FILE.getAbsolutePath());
StoreClientConfigService storeClientConfigs = null;
switch(config.getFatClientConfigSource()) {
case FILE:
storeClientConfigs = new FileBasedStoreClientConfigService(config);
break;
case ZOOKEEPER:
throw new UnsupportedOperationException("Zookeeper-based configs are not implemented yet!");