Class SegmentRouter


  • public class SegmentRouter
    extends Object
    Class for manage of segment file location.
    • Constructor Detail

      • SegmentRouter

        public SegmentRouter​(File walWorkDir,
                             File walArchiveDir,
                             SegmentAware segmentAware,
                             DataStorageConfiguration dsCfg)
        Parameters:
        walWorkDir - WAL work directory.
        walArchiveDir - WAL archive directory.
        segmentAware - Holder of actual information of latest manipulation on WAL segments.
        dsCfg - Data storage configuration.
    • Method Detail

      • hasArchive

        public boolean hasArchive()
        Returns:
        true If archive folder exists.
      • getWalWorkDir

        public File getWalWorkDir()
        Returns:
        WAL working directory.
      • getWalArchiveDir

        public File getWalArchiveDir()
        Returns:
        WAL archive directory.