public class SnapshotMetadata extends Object implements Serializable
| Constructor and Description |
|---|
SnapshotMetadata(UUID rqId,
String snpName,
String consId,
String folderName,
int pageSize,
List<Integer> grpIds,
Collection<Integer> compGrpIds,
Set<String> bltNodes,
Set<GroupPartitionId> pairs,
@Nullable WALPointer snpRecPtr,
@Nullable byte[] masterKeyDigest,
boolean onlyPrimary) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
baselineNodes() |
List<Integer> |
cacheGroupIds() |
String |
consistentId() |
boolean |
equals(Object o) |
String |
folderName() |
boolean |
hasCompressedGroups() |
int |
hashCode() |
boolean |
isGroupWithCompresion(int grpId) |
byte[] |
masterKeyDigest() |
boolean |
onlyPrimary() |
int |
pageSize() |
Map<Integer,Set<Integer>> |
partitions() |
UUID |
requestId() |
boolean |
sameSnapshot(SnapshotMetadata compare) |
String |
snapshotName() |
@Nullable WALPointer |
snapshotRecordPointer() |
String |
toString() |
List<String> |
warnings() |
void |
warnings(List<String> warnings) |
public SnapshotMetadata(UUID rqId, String snpName, String consId, String folderName, int pageSize, List<Integer> grpIds, Collection<Integer> compGrpIds, Set<String> bltNodes, Set<GroupPartitionId> pairs, @Nullable @Nullable WALPointer snpRecPtr, @Nullable @Nullable byte[] masterKeyDigest, boolean onlyPrimary)
rqId - Unique request id.snpName - Snapshot name.consId - Consistent id of a node to which this metadata relates.folderName - Directory name which stores the data files.pageSize - Page size of stored snapshot data.grpIds - The list of cache groups ids which were included into snapshot.bltNodes - The set of affected by snapshot baseline nodes.snpRecPtr - WAL pointer to ClusterSnapshotRecord if exists.masterKeyDigest - Master key digest for encrypted caches.onlyPrimary - If true snapshot only primary copies of partitions.public UUID requestId()
public String snapshotName()
public String consistentId()
public String folderName()
public int pageSize()
public List<Integer> cacheGroupIds()
public Set<String> baselineNodes()
public Map<Integer,Set<Integer>> partitions()
public boolean isGroupWithCompresion(int grpId)
public boolean hasCompressedGroups()
@Nullable public @Nullable WALPointer snapshotRecordPointer()
ClusterSnapshotRecord if exists.public boolean onlyPrimary()
true snapshot only primary copies of partitions.public boolean sameSnapshot(SnapshotMetadata compare)
compare - Snapshot metadata to compare.true if given metadata belongs to the same snapshot.public byte[] masterKeyDigest()
public void warnings(List<String> warnings)
warnings - Snapshot creation warnings.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023