Class GridCacheDatabaseSharedManager.RestoreBinaryState
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.RestoreBinaryState
-
- Enclosing class:
- GridCacheDatabaseSharedManager
public class GridCacheDatabaseSharedManager.RestoreBinaryState extends Object
Restore memory context. Tracks the safety of binary recovery.
-
-
Constructor Summary
Constructors Constructor Description RestoreBinaryState(CheckpointStatus status, WALIterator iterator, long lastArchivedSegment, IgnitePredicate<Integer> cacheGroupsPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanneedApplyBinaryUpdate()@Nullable WALRecordnext()Advance iterator to the next record.booleanthrowsCRCError()
-
-
-
Constructor Detail
-
RestoreBinaryState
public RestoreBinaryState(CheckpointStatus status, WALIterator iterator, long lastArchivedSegment, IgnitePredicate<Integer> cacheGroupsPredicate)
- Parameters:
status- Checkpoint status.iterator- WAL iterator.lastArchivedSegment- Last archived segment index.cacheGroupsPredicate- Cache groups predicate.
-
-
Method Detail
-
next
@Nullable public @Nullable WALRecord next() throws IgniteCheckedException
Advance iterator to the next record.- Returns:
- WALRecord entry.
- Throws:
IgniteCheckedException- If CRC check fail during binary recovery state or another exception occurring.
-
needApplyBinaryUpdate
public boolean needApplyBinaryUpdate()
- Returns:
- Flag indicates need apply binary record or not.
-
throwsCRCError
public boolean throwsCRCError()
- Returns:
- Flag indicates need throws CRC exception or not.
-
-