public class PdsConsistentIdProcessor extends GridProcessorAdapter implements PdsFoldersResolver
Modifier and Type | Class and Description |
---|---|
static class |
PdsConsistentIdProcessor.FolderCandidate
Represents parsed new style file and encoded parameters in this file name
|
GridComponent.DiscoveryDataExchangeType
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.
|
diagnosticLog
Constructor and Description |
---|
PdsConsistentIdProcessor(GridKernalContext ctx)
Creates folders resolver
|
Modifier and Type | Method and Description |
---|---|
static @NotNull String |
genNewStyleSubfolderName(int nodeIdx,
UUID uuid)
Generates DB subfolder name for provided node index (local) and UUID (consistent ID)
|
static @Nullable PdsConsistentIdProcessor.FolderCandidate |
parseSubFolderName(@NotNull File subFolderFile,
@NotNull IgniteLogger log) |
PdsFolderSettings |
resolveFolders()
Prepares and caches PDS folder settings.
|
void |
stop(boolean cancel)
Stops grid component.
|
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStop, onReconnected, printMemoryStats, start, toString, validateNode, validateNode
public static final FileFilter DB_SUBFOLDERS_NEW_STYLE_FILTER
public static final String DB_DEFAULT_FOLDER
public PdsConsistentIdProcessor(GridKernalContext ctx)
ctx
- Context.public PdsFolderSettings resolveFolders() throws IgniteCheckedException
resolveFolders
in interface PdsFoldersResolver
IgniteCheckedException
- if failed.@NotNull public static @NotNull String genNewStyleSubfolderName(int nodeIdx, UUID uuid)
nodeIdx
- node index.uuid
- consistent ID.@Nullable public static @Nullable PdsConsistentIdProcessor.FolderCandidate parseSubFolderName(@NotNull @NotNull File subFolderFile, @NotNull @NotNull IgniteLogger log)
subFolderFile
- new style file to parse.log
- Logger.public void stop(boolean cancel) throws IgniteCheckedException
stop
in interface GridComponent
stop
in class GridProcessorAdapter
cancel
- If true
, then all ongoing tasks or jobs for relevant
components need to be cancelled.IgniteCheckedException
- Thrown in case of any errors.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021