Class FileStorageManager

  • All Implemented Interfaces:
    StorageManager

    public class FileStorageManager
    extends Object
    implements StorageManager
    Implements file storage that automatically splits large files and limits the number of open files.
    • Constructor Detail

      • FileStorageManager

        public FileStorageManager()
    • Method Detail

      • setMaxOpenFiles

        public void setMaxOpenFiles​(int maxOpenFiles)
      • setStorageDirectory

        public void setStorageDirectory​(String directory)
      • getDirectory

        public String getDirectory()
      • getOpenFiles

        public int getOpenFiles()
      • getUsedBufferSpace

        public long getUsedBufferSpace()
        Get the used buffer space in bytes
        Returns:
      • getOutOfDiskErrorCount

        public int getOutOfDiskErrorCount()
      • setMaxBufferSpace

        public void setMaxBufferSpace​(long maxBufferSpace)
        Set the max amount of buffer space in bytes
        Parameters:
        maxBufferSpace -