public class Dump extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static interface |
Dump.DumpedPartitionIterator
Closeable dump iterator.
|
| Constructor and Description |
|---|
Dump(File dumpDir,
boolean keepBinary,
boolean raw,
IgniteLogger log) |
Dump(File dumpDir,
@Nullable String consistentId,
boolean keepBinary,
boolean raw,
@Nullable EncryptionSpi encSpi,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<StoredCacheData> |
configs(String node,
int group) |
File |
dumpDirectory() |
static String |
dumpPartFileName(int part,
boolean compressed) |
Dump.DumpedPartitionIterator |
iterator(String node,
int group,
int part) |
List<SnapshotMetadata> |
metadata() |
List<String> |
nodesDirectories() |
List<Integer> |
partitions(String node,
int group) |
Iterator<BinaryType> |
types() |
public Dump(File dumpDir, boolean keepBinary, boolean raw, IgniteLogger log)
dumpDir - Dump directory.keepBinary - If true then keep read entries in binary form.raw - If true then keep read entries in form of KeyCacheObject and CacheObject.log - Logger.public Dump(File dumpDir, @Nullable @Nullable String consistentId, boolean keepBinary, boolean raw, @Nullable @Nullable EncryptionSpi encSpi, IgniteLogger log)
dumpDir - Dump directory.consistentId - If specified, read dump data only for specific node.keepBinary - If true then keep read entries in binary form.raw - If true then keep read entries in form of KeyCacheObject and CacheObject.encSpi - Encryption SPI instance.log - Logger.public Iterator<BinaryType> types()
public List<SnapshotMetadata> metadata() throws IOException, IgniteCheckedException
dumpDir.IOExceptionIgniteCheckedExceptionpublic List<StoredCacheData> configs(String node, int group)
node - Node directory name.group - Group id.public List<Integer> partitions(String node, int group)
node - Node directory name.group - Group id.public Dump.DumpedPartitionIterator iterator(String node, int group, int part)
node - Node directory name.group - Group id.public static String dumpPartFileName(int part, boolean compressed)
part - Partition number.compressed - If true then compressed partition file.public File dumpDirectory()
public void close()
throws Exception
close in interface AutoCloseableException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023