Class PrintRawToFileHandler
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.wal.scanner.PrintRawToFileHandler
-
- All Implemented Interfaces:
ScannerHandler
public class PrintRawToFileHandler extends Object
Handler to print raw pages data into file for further diagnostic.
-
-
Constructor Summary
Constructors Constructor Description PrintRawToFileHandler(File file, RecordSerializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()Method which called after all iteration would be finished.protected byte[]getBytes(IgniteBiTuple<WALPointer,WALRecord> record)protected byte[]getHeader()voidhandle(IgniteBiTuple<WALPointer,WALRecord> record)Handling one more record during iteration over WAL.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.persistence.wal.scanner.ScannerHandler
andThen
-
-
-
-
Constructor Detail
-
PrintRawToFileHandler
public PrintRawToFileHandler(File file, RecordSerializer serializer)
- Parameters:
file- Output file.serializer- Serializer for WAL records.
-
-
Method Detail
-
getBytes
protected byte[] getBytes(IgniteBiTuple<WALPointer,WALRecord> record)
- Parameters:
record- WAL record with its pointer.- Returns:
- Bytes repersentation of data to be written in dump file.
-
getHeader
protected byte[] getHeader()
- Returns:
- Optional header for the diagnostic file.
nullif there should be no header.
-
handle
public final void handle(IgniteBiTuple<WALPointer,WALRecord> record)
Handling one more record during iteration over WAL.- Specified by:
handlein interfaceScannerHandler- Parameters:
record- One more record from WAL.
-
finish
public void finish()
Method which called after all iteration would be finished.- Specified by:
finishin interfaceScannerHandler
-
-