Class EarliestCheckpointMapSnapshot
- java.lang.Object
-
- org.apache.ignite.internal.dto.IgniteDataTransferObject
-
- org.apache.ignite.internal.processors.cache.persistence.checkpoint.EarliestCheckpointMapSnapshot
-
- All Implemented Interfaces:
Externalizable,Serializable
public class EarliestCheckpointMapSnapshot extends IgniteDataTransferObject
Earliest checkpoint map snapshot. Speeds up construction of the earliestCp map in theCheckpointHistory.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EarliestCheckpointMapSnapshot()Default constructor.EarliestCheckpointMapSnapshot(Set<UUID> checkpointIds, Map<UUID,Map<Integer,org.apache.ignite.internal.processors.cache.persistence.checkpoint.EarliestCheckpointMapSnapshot.GroupStateSnapshot>> earliestCp)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckpointWasPresent(UUID checkpointId)Returnstrueif a checkpoint was present during the snapshot capture,falseotherwise.@Nullable Map<Integer,CheckpointEntry.GroupState>groupState(UUID checkpointId)Gets a group state by a checkpoint id.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
-
EarliestCheckpointMapSnapshot
public EarliestCheckpointMapSnapshot(Set<UUID> checkpointIds, Map<UUID,Map<Integer,org.apache.ignite.internal.processors.cache.persistence.checkpoint.EarliestCheckpointMapSnapshot.GroupStateSnapshot>> earliestCp)
Constructor.
-
EarliestCheckpointMapSnapshot
public EarliestCheckpointMapSnapshot()
Default constructor.
-
-
Method Detail
-
groupState
@Nullable public @Nullable Map<Integer,CheckpointEntry.GroupState> groupState(UUID checkpointId)
Gets a group state by a checkpoint id.- Parameters:
checkpointId- Checkpoint id.- Returns:
- Group state.
-
checkpointWasPresent
public boolean checkpointWasPresent(UUID checkpointId)
Returnstrueif a checkpoint was present during the snapshot capture,falseotherwise.- Parameters:
checkpointId- Checkpoint id.- Returns:
trueif checkpoint was present,falseotherwise.
-
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.
-
-