/** * Synchronize file system structure and then execute provided task. All these actions are performed withing * the transaction. * * @param task Task to execute. * @param fs File system. * @param strict Whether paths must be re-created strictly. * @param paths Paths to synchronize. * @return Result of task execution. * @throws GridException If failed. */ private <T> T synchronizeAndExecute(SynchronizationTask<T> task, GridGgfsFileSystem fs, boolean strict, GridGgfsPath... paths) throws GridException { return synchronizeAndExecute(task, fs, strict, null, paths); }
/** * Synchronize file system structure and then execute provided task. All these actions are performed withing * the transaction. * * @param task Task to execute. * @param fs File system. * @param strict Whether paths must be re-created strictly. * @param paths Paths to synchronize. * @return Result of task execution. * @throws GridException If failed. */ private <T> T synchronizeAndExecute(SynchronizationTask<T> task, GridGgfsFileSystem fs, boolean strict, GridGgfsPath... paths) throws GridException { return synchronizeAndExecute(task, fs, strict, null, paths); }
return synchronizeAndExecute(task, fs, false, path);
return synchronizeAndExecute(task, fs, false, path);
return synchronizeAndExecute(task, fs, true, path);
return synchronizeAndExecute(task, fs, true, path);
return synchronizeAndExecute(task, fs, false, path);
return synchronizeAndExecute(task, fs, false, path);
Boolean res = synchronizeAndExecute(task, fs, false, Collections.singleton(TRASH_ID), path);
Boolean res = synchronizeAndExecute(task, fs, false, Collections.singleton(TRASH_ID), path);
return synchronizeAndExecute(task, fs, false, path.parent());
return synchronizeAndExecute(task, fs, false, path.parent());
return synchronizeAndExecute(task, fs, false, path.parent());
return synchronizeAndExecute(task, fs, false, path.parent());
return synchronizeAndExecute(task, fs, false, src, dest);
return synchronizeAndExecute(task, fs, false, src, dest);
return synchronizeAndExecute(task, fs, false, path);
return synchronizeAndExecute(task, fs, false, path);