Class SnapshotPartitionsVerifyTaskArg
- java.lang.Object
-
- org.apache.ignite.internal.visor.VisorDataTransferObject
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotPartitionsVerifyTaskArg
-
- All Implemented Interfaces:
Externalizable,Serializable
public class SnapshotPartitionsVerifyTaskArg extends VisorDataTransferObject
Input parameters for checking snapshot partitions consistency task.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotPartitionsVerifyTaskArg()Default constructor.SnapshotPartitionsVerifyTaskArg(@Nullable Collection<String> grpNames, Map<ClusterNode,List<SnapshotMetadata>> clusterMetas, @Nullable String snpPath, int incIdx, boolean check)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Collection<String>cacheGroupNames()booleancheck()Map<ClusterNode,List<SnapshotMetadata>>clusterMetadata()intincrementIndex()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.@Nullable StringsnapshotPath()StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.visor.VisorDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
SnapshotPartitionsVerifyTaskArg
public SnapshotPartitionsVerifyTaskArg()
Default constructor.
-
SnapshotPartitionsVerifyTaskArg
public SnapshotPartitionsVerifyTaskArg(@Nullable @Nullable Collection<String> grpNames, Map<ClusterNode,List<SnapshotMetadata>> clusterMetas, @Nullable @Nullable String snpPath, int incIdx, boolean check)- Parameters:
grpNames- Cache group names to be verified.clusterMetas- The map of distribution of snapshot metadata pieces across the cluster.snpPath- Snapshot directory path.incIdx- Incremental snapshot index.check- Iftruecheck snapshot integrity.
-
-
Method Detail
-
cacheGroupNames
@Nullable public @Nullable Collection<String> cacheGroupNames()
- Returns:
- Cache group names to be verified.
-
clusterMetadata
public Map<ClusterNode,List<SnapshotMetadata>> clusterMetadata()
- Returns:
- The map of distribution of snapshot metadata pieces across the cluster.
-
snapshotPath
@Nullable public @Nullable String snapshotPath()
- Returns:
- Snapshot directory path.
-
incrementIndex
public int incrementIndex()
- Returns:
- Incremental snapshot index.
-
check
public boolean check()
- Returns:
- If
truecheck snapshot integrity.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classVisorDataTransferObject- 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 classVisorDataTransferObject- 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.
-
-