L - Type of the lock holder.public class PdsFolderResolver<L extends FileLockHolder> extends Object
IgniteConfiguration and consistentId.| Modifier and Type | Class and Description |
|---|---|
static class |
PdsFolderResolver.FolderCandidate
Represents parsed new style file and encoded parameters in this file name
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DB_DEFAULT_FOLDER
Database default folder.
|
static FileFilter |
DB_SUBFOLDERS_NEW_STYLE_FILTER
Database subfolders for new style filter.
|
| Constructor and Description |
|---|
PdsFolderResolver(IgniteConfiguration cfg,
IgniteLogger log,
@Nullable Serializable consistentId,
Function<File,L> tryLock) |
| Modifier and Type | Method and Description |
|---|---|
PdsFolderSettings<L> |
generateNew() |
static @NotNull String |
genNewStyleSubfolderName(int nodeIdx,
UUID uuid)
Generates DB subfolder name for provided node index (local) and UUID (consistent ID)
|
static @Nullable PdsFolderResolver.FolderCandidate |
parseSubFolderName(@NotNull File subFolderFile,
@NotNull IgniteLogger log) |
PdsFolderSettings<L> |
resolve()
|
public static final FileFilter DB_SUBFOLDERS_NEW_STYLE_FILTER
public static final String DB_DEFAULT_FOLDER
public PdsFolderResolver(IgniteConfiguration cfg, IgniteLogger log, @Nullable @Nullable Serializable consistentId, Function<File,L> tryLock)
cfg - Ignite configuration.log - Logger.consistentId - Constent id.tryLock - Lock function.public PdsFolderSettings<L> resolve() throws IgniteCheckedException
IgniteCheckedException - if IO failed.public PdsFolderSettings<L> generateNew() throws IgniteCheckedException
IgniteCheckedException - In case of error.@NotNull public static @NotNull String genNewStyleSubfolderName(int nodeIdx, UUID uuid)
nodeIdx - node index.uuid - consistent ID.@Nullable public static @Nullable PdsFolderResolver.FolderCandidate parseSubFolderName(@NotNull @NotNull File subFolderFile, @NotNull @NotNull IgniteLogger log)
subFolderFile - new style file to parse.log - Logger.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023