/** * Creates a {@link FileSystem} given a user specified configKey. */ private FileSystem createFileSystem(URI configKey) throws ConfigStoreCreationException { try { return FileSystem.get(createFileSystemURI(configKey), new Configuration()); } catch (IOException | URISyntaxException e) { throw new ConfigStoreCreationException(configKey, e); } }
return getDefaultStoreURILazy(); } else if (isAuthorityRequired()) { throw new ConfigStoreCreationException(configKey, "No default store has been configured."); throw new ConfigStoreCreationException(configKey, e); throw new ConfigStoreCreationException(configKey, "Cannot find the store root!");
public ZipFileConfigStore createConfigStore(URI configKey) throws ConfigStoreCreationException { if (!configKey.getScheme().equals(getScheme())) { throw new ConfigStoreCreationException(configKey, "Config key URI must have scheme " + getScheme()); throw new ConfigStoreCreationException(configKey, "Config key URI must contain org, module, and storePath"); throw new ConfigStoreCreationException(configKey, "Expected one jar file from URI"); throw new ConfigStoreCreationException(configKey, "Downloaded file must be a zip or jar file"); throw new ConfigStoreCreationException(configKey, e);
/** * Creates a {@link FileSystem} given a user specified configKey. */ private FileSystem createFileSystem(URI configKey) throws ConfigStoreCreationException { try { return FileSystem.get(createFileSystemURI(configKey), new Configuration()); } catch (IOException | URISyntaxException e) { throw new ConfigStoreCreationException(configKey, e); } }
return getDefaultStoreURILazy(); } else if (isAuthorityRequired()) { throw new ConfigStoreCreationException(configKey, "No default store has been configured."); throw new ConfigStoreCreationException(configKey, e); throw new ConfigStoreCreationException(configKey, "Cannot find the store root!");
public ZipFileConfigStore createConfigStore(URI configKey) throws ConfigStoreCreationException { if (!configKey.getScheme().equals(getScheme())) { throw new ConfigStoreCreationException(configKey, "Config key URI must have scheme " + getScheme()); throw new ConfigStoreCreationException(configKey, "Config key URI must contain org, module, and storePath"); throw new ConfigStoreCreationException(configKey, "Expected one jar file from URI"); throw new ConfigStoreCreationException(configKey, "Downloaded file must be a zip or jar file"); throw new ConfigStoreCreationException(configKey, e);