Class SnapshotPartitionsVerifyTaskResult
- java.lang.Object
-
- org.apache.ignite.internal.dto.IgniteDataTransferObject
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotPartitionsVerifyTaskResult
-
- All Implemented Interfaces:
Externalizable,Serializable
public class SnapshotPartitionsVerifyTaskResult extends IgniteDataTransferObject
The result of execution snapshot partitions verify task which besides calculating partition hashes ofIdleVerifyResultV2also contains the snapshot metadata distribution across the cluster.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotPartitionsVerifyTaskResult()Default constructor.SnapshotPartitionsVerifyTaskResult(Map<ClusterNode,List<SnapshotMetadata>> metas, @Nullable IdleVerifyResultV2 idleRes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<ClusterNode,Exception>exceptions()IdleVerifyResultV2idleVerifyResult()Map<ClusterNode,List<SnapshotMetadata>>metas()voidprint(Consumer<String> printer)Print formatted result to the given printer.protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.dto.IgniteDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
SnapshotPartitionsVerifyTaskResult
public SnapshotPartitionsVerifyTaskResult()
Default constructor.
-
SnapshotPartitionsVerifyTaskResult
public SnapshotPartitionsVerifyTaskResult(Map<ClusterNode,List<SnapshotMetadata>> metas, @Nullable @Nullable IdleVerifyResultV2 idleRes)
- Parameters:
metas- Map of snapshot metadata information found on each cluster node.idleRes- Result of cluster nodes partitions comparison.
-
-
Method Detail
-
metas
public Map<ClusterNode,List<SnapshotMetadata>> metas()
- Returns:
- Map of snapshot metadata information found on each cluster node.
-
print
public void print(Consumer<String> printer)
Print formatted result to the given printer. Adds the snapshot warnings if snapshot has conflicts.- Parameters:
printer- Consumer for handle formatted result.
-
idleVerifyResult
public IdleVerifyResultV2 idleVerifyResult()
- Returns:
- Result of cluster nodes partitions comparison.
-
exceptions
public Map<ClusterNode,Exception> exceptions()
- Returns:
- Exceptions on nodes.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classIgniteDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classIgniteDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-