/** * @return the location of the completed logs */ public URI getCompletedLocation() { try { return URIUtils.appendPath(mLocation, COMPLETED_LOCATION); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * @return the location of the journal checkpoint */ protected URI getCheckpoint() { try { return URIUtils.appendPath(mLocation, CHECKPOINT_FILENAME); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * @return the location of the current log */ public URI getCurrentLog() { try { return URIUtils.appendPath(mLocation, ENTRY_LOG_FILENAME_BASE + CURRENT_LOG_EXTENSION); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * Appends the given path to the given base URI. It throws an {@link RuntimeException} if * the inputs are malformed. * * @param base the base URI * @param path the path to append * @return the URI resulting from appending the base and the path */ public static URI appendPathOrDie(URI base, String path) { try { return appendPath(base, path); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
@Override public Journal create(String name) { try { return new UfsJournal(URIUtils.appendPath(mBase, name)); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
@Override public MutableJournal create(String name) { try { return new UfsMutableJournal(URIUtils.appendPath(mBase, name)); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * @param logNumber the log number to get the path for * @return the location of the completed log for a particular log number */ protected URI getCompletedLog(long logNumber) { try { return URIUtils.appendPath(getCompletedLocation(), String.format("%s.%020d", ENTRY_LOG_FILENAME_BASE, logNumber)); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
URI childPath; try { childPath = URIUtils.appendPath(mLocation, p.getName()); } catch (URISyntaxException e) { throw new RuntimeException(e.getMessage()); UnderFileSystemUtils.touch(ufs, URIUtils.appendPath(mLocation, ServerConfiguration.get(PropertyKey.MASTER_FORMAT_FILE_PREFIX) + System.currentTimeMillis())
/** * @return the location of the completed logs */ public URI getCompletedLocation() { try { return URIUtils.appendPath(mLocation, COMPLETED_LOCATION); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * @return the location of the current log */ public URI getCurrentLog() { try { return URIUtils.appendPath(mLocation, ENTRY_LOG_FILENAME_BASE + CURRENT_LOG_EXTENSION); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * @return the location of the journal checkpoint */ protected URI getCheckpoint() { try { return URIUtils.appendPath(mLocation, CHECKPOINT_FILENAME); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * Appends the given path to the given base URI. It throws an {@link RuntimeException} if * the inputs are malformed. * * @param base the base URI * @param path the path to append * @return the URI resulting from appending the base and the path */ public static URI appendPathOrDie(URI base, String path) { try { return appendPath(base, path); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
/** * @param logNumber the log number to get the path for * @return the location of the completed log for a particular log number */ protected URI getCompletedLog(long logNumber) { try { return URIUtils.appendPath(getCompletedLocation(), String.format("%s.%020d", ENTRY_LOG_FILENAME_BASE, logNumber)); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
@Override public MutableJournal create(String name) { try { return new UfsMutableJournal(URIUtils.appendPath(mBase, name)); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
@Override public Journal create(String name) { try { return new UfsJournal(URIUtils.appendPath(mBase, name)); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
URI childPath; try { childPath = URIUtils.appendPath(mLocation, p.getName()); } catch (URISyntaxException e) { throw new RuntimeException(e.getMessage()); UnderFileSystemUtils.touch(ufs, URIUtils.appendPath(mLocation, Configuration.get(PropertyKey.MASTER_FORMAT_FILE_PREFIX) + System.currentTimeMillis()) .toString());