/** * Resolve the custom path for a index's shard. * Uses the {@code IndexMetaData.SETTING_DATA_PATH} setting to determine * the root path for the index. * * @param indexSettings settings for the index */ public Path resolveBaseCustomLocation(IndexSettings indexSettings) { return resolveBaseCustomLocation(indexSettings, sharedDataPath, nodeLockId); }
private static Path resolveIndexCustomLocation(IndexSettings indexSettings, Path sharedDataPath, int nodeLockId) { return resolveBaseCustomLocation(indexSettings, sharedDataPath, nodeLockId).resolve(indexSettings.getUUID()); }
/** * Resolve the custom path for a index's shard. * Uses the {@code IndexMetaData.SETTING_DATA_PATH} setting to determine * the root path for the index. * * @param indexSettings settings for the index */ public Path resolveBaseCustomLocation(IndexSettings indexSettings) { return resolveBaseCustomLocation(indexSettings, sharedDataPath, nodeLockId); }
/** * Resolve the custom path for a index's shard. * Uses the {@code IndexMetaData.SETTING_DATA_PATH} setting to determine * the root path for the index. * * @param indexSettings settings for the index */ private Path resolveIndexCustomLocation(IndexSettings indexSettings) { return resolveBaseCustomLocation(indexSettings).resolve(indexSettings.getUUID()); }
private static Path resolveIndexCustomLocation(IndexSettings indexSettings, Path sharedDataPath, int nodeLockId) { return resolveBaseCustomLocation(indexSettings, sharedDataPath, nodeLockId).resolve(indexSettings.getUUID()); }
final Path customLocationSource = nodeEnv.resolveBaseCustomLocation(indexSettings) .resolve(indexFolderName); final Path customLocationTarget = customLocationSource.resolveSibling(index.getUUID());
final Path customLocationSource = nodeEnv.resolveBaseCustomLocation(indexSettings) .resolve(indexFolderName); final Path customLocationTarget = customLocationSource.resolveSibling(index.getUUID());