Class DirectoryStrategy

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger logger  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract int nextFolderIndex()
      Choose a folder to allocate.
      void setFolders​(java.util.List<java.lang.String> folders)
      To init folders.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
    • Constructor Detail

      • DirectoryStrategy

        public DirectoryStrategy()
    • Method Detail

      • setFolders

        public void setFolders​(java.util.List<java.lang.String> folders)
                        throws DiskSpaceInsufficientException
        To init folders. Do not recommend to overwrite. This method guarantees that at least one folder has available space.
        Parameters:
        folders - the folders from conf
        Throws:
        DiskSpaceInsufficientException