public class SegmentRouter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ZIP_SUFFIX |
Constructor and Description |
---|
SegmentRouter(File walWorkDir,
File walArchiveDir,
SegmentAware segmentAware,
DataStorageConfiguration dsCfg) |
Modifier and Type | Method and Description |
---|---|
FileDescriptor |
findSegment(long segmentId)
Find file which represent given segment.
|
File |
getWalArchiveDir() |
File |
getWalWorkDir() |
boolean |
hasArchive() |
public static final String ZIP_SUFFIX
public SegmentRouter(File walWorkDir, File walArchiveDir, SegmentAware segmentAware, DataStorageConfiguration dsCfg)
walWorkDir
- WAL work directory.walArchiveDir
- WAL archive directory.segmentAware
- Holder of actual information of latest manipulation on WAL segments.dsCfg
- Data storage configuration.public FileDescriptor findSegment(long segmentId) throws FileNotFoundException
segmentId
- Segment for searching.FileNotFoundException
- If file does not exist.public boolean hasArchive()
true
If archive folder exists.public File getWalWorkDir()
public File getWalArchiveDir()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021