/** * Gets first available file info for fragmentizer. * * @param exclude File IDs to exclude from result. * @return First qualified file info. * @throws GridException If failed to get file for fragmentizer. */ public GridGgfsFileInfo fileForFragmentizer(Collection<GridUuid> exclude) throws GridException { if (busyLock.enterBusy()) { try { return fileForFragmentizer0(ROOT_ID, exclude); } finally { busyLock.leaveBusy(); } } else throw new IllegalStateException("Failed to get file for framentizer because Grid is stopping."); }
/** * Gets first available file info for fragmentizer. * * @param exclude File IDs to exclude from result. * @return First qualified file info. * @throws GridException If failed to get file for fragmentizer. */ public GridGgfsFileInfo fileForFragmentizer(Collection<GridUuid> exclude) throws GridException { if (busyLock.enterBusy()) { try { return fileForFragmentizer0(ROOT_ID, exclude); } finally { busyLock.leaveBusy(); } } else throw new IllegalStateException("Failed to get file for framentizer because Grid is stopping."); }
GridGgfsFileInfo fileInfo = fileForFragmentizer0(entry.fileId(), exclude);
GridGgfsFileInfo fileInfo = fileForFragmentizer0(entry.fileId(), exclude);