try builder = VFS.getManager().getFileSystemConfigBuilder(scheme);
private void snapshotMetaStore( String metaStoreSnapshotDir ) throws Exception { IMetaStore snapshot = new XmlMetaStore( metaStoreSnapshotDir ); try { FileSystemConfigBuilder nc = KettleVFS.getInstance().getFileSystemManager().getFileSystemConfigBuilder( "hc" ); Method snapshotMethod = nc.getClass().getMethod( "snapshotNamedClusterToMetaStore", IMetaStore.class ); snapshotMethod.invoke( nc, snapshot ); } catch ( FileSystemException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e ) { e.printStackTrace(); } }
final FileSystemConfigBuilder fscb = getManager().getFileSystemConfigBuilder(scheme); if (fscb == null) { throw new FileSystemException("vfs.provider/no-config-builder.error", scheme);
final FileSystemConfigBuilder fscb = getManager().getFileSystemConfigBuilder(scheme); FileSystemException.requireNonNull(fscb, "vfs.provider/no-config-builder.error", scheme);
final FileSystemConfigBuilder fscb = getManager().getFileSystemConfigBuilder(scheme); if (fscb == null) { throw new FileSystemException("vfs.provider/no-config-builder.error", scheme);
final FileSystemConfigBuilder fscb = getManager().getFileSystemConfigBuilder(scheme); if (fscb == null)
/** * sets the values using the informations of the given context.<br> */ private void setValues(final Context ctx) throws FileSystemException { // find all setter methods suitable for the given "name" if (!fillConfigSetters(ctx)) { throw new FileSystemException("vfs.provider/config-key-invalid.error", ctx.scheme, ctx.name); } // get the fileSystemConfigBuilder ctx.fileSystemConfigBuilder = getManager().getFileSystemConfigBuilder(ctx.scheme); // try to find a setter which could accept the value final Iterator<Method> iterConfigSetters = ctx.configSetters.iterator(); while (iterConfigSetters.hasNext()) { final Method configSetter = iterConfigSetters.next(); if (convertValuesAndInvoke(configSetter, ctx)) { return; } } throw new FileSystemException("vfs.provider/config-value-invalid.error", ctx.scheme, ctx.name, ctx.values); }
/** * sets the values using the informations of the given context.<br> */ private void setValues(final Context ctx) throws FileSystemException { // find all setter methods suitable for the given "name" if (!fillConfigSetters(ctx)) { throw new FileSystemException("vfs.provider/config-key-invalid.error", ctx.scheme, ctx.name); } // get the fileSystemConfigBuilder ctx.fileSystemConfigBuilder = getManager().getFileSystemConfigBuilder(ctx.scheme); // try to find a setter which could accept the value final Iterator<Method> iterConfigSetters = ctx.configSetters.iterator(); while (iterConfigSetters.hasNext()) { final Method configSetter = iterConfigSetters.next(); if (convertValuesAndInvoke(configSetter, ctx)) { return; } } throw new FileSystemException("vfs.provider/config-value-invalid.error", ctx.scheme, ctx.name, ctx.values); }
/** * sets the values using the informations of the given context.<br> */ private void setValues(final Context ctx) throws FileSystemException { // find all setter methods suitable for the given "name" if (!fillConfigSetters(ctx)) { throw new FileSystemException("vfs.provider/config-key-invalid.error", ctx.scheme, ctx.name); } // get the fileSystemConfigBuilder ctx.fileSystemConfigBuilder = getManager().getFileSystemConfigBuilder(ctx.scheme); // try to find a setter which could accept the value final Iterator<Method> iterConfigSetters = ctx.configSetters.iterator(); while (iterConfigSetters.hasNext()) { final Method configSetter = iterConfigSetters.next(); if (convertValuesAndInvoke(configSetter, ctx)) { return; } } throw new FileSystemException("vfs.provider/config-value-invalid.error", ctx.scheme, ctx.name, ctx.values); }
/** * sets the values using the informations of the given context.<br> */ private void setValues(final Context ctx) throws FileSystemException { // find all setter methods suitable for the given "name" if (!fillConfigSetters(ctx)) { throw new FileSystemException("vfs.provider/config-key-invalid.error", ctx.scheme, ctx.name); } // get the fileSystemConfigBuilder ctx.fileSystemConfigBuilder = getManager().getFileSystemConfigBuilder(ctx.scheme); // try to find a setter which could accept the value final Iterator<Method> iterConfigSetters = ctx.configSetters.iterator(); while (iterConfigSetters.hasNext()) { final Method configSetter = iterConfigSetters.next(); if (convertValuesAndInvoke(configSetter, ctx)) { return; } } throw new FileSystemException("vfs.provider/config-value-invalid.error", ctx.scheme, ctx.name, ctx.values); }
try builder = VFS.getManager().getFileSystemConfigBuilder(scheme);
try builder = VFS.getManager().getFileSystemConfigBuilder(scheme);
/** * Returns the base folder for tests. */ @Override public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { String uri = getSystemTestUriOverride(); if (uri == null) { uri = ConnectionUri; } final WebdavFileSystemConfigBuilder builder = (WebdavFileSystemConfigBuilder) manager .getFileSystemConfigBuilder("webdav"); final FileSystemOptions opts = new FileSystemOptions(); builder.setRootURI(opts, uri); return manager.resolveFile(uri, opts); }
/** * Returns the base folder for tests. */ @Override public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { String uri = getSystemTestUriOverride(); if (uri == null) { uri = ConnectionUri; } final WebdavFileSystemConfigBuilder builder = (WebdavFileSystemConfigBuilder) manager .getFileSystemConfigBuilder("webdav"); final FileSystemOptions opts = new FileSystemOptions(); builder.setRootURI(opts, uri); return manager.resolveFile(uri, opts); }