/** * Shortcut for {@code waitCompleted(tfs, uri, -1, TimeUnit.MILLISECONDS)}, i.e., wait for an * indefinite amount of time. Note that if a file is never completed, the thread will block * forever, so use with care. * * @see #waitCompleted(TachyonFileSystemCore, TachyonURI, long, TimeUnit) * @param tfs a {@link TachyonFileSystemCore} instance * @param uri the URI of the file on which the thread should wait * @return true if the file is complete when this method returns and false * if the method timed out before the file was complete. * * @throws IOException in case there are problems contacting the Tachyonmaster * for the file status * @throws TachyonException if a Tachyon Exception occurs * @throws InterruptedException if the thread receives an interrupt while * waiting for file completion */ public static boolean waitCompleted(TachyonFileSystemCore tfs, TachyonURI uri) throws IOException, TachyonException, InterruptedException { return TachyonFileSystemUtils.waitCompleted(tfs, uri, -1, TimeUnit.MILLISECONDS); }