Interface DiskManagerFileInfoSet

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      DiskManagerFileInfo[] getFiles()  
      void load​(int[] priorities, boolean[] skipped)  
      int nbFiles()  
      void setPriority​(int[] newPriorities)
      Sets the priorities of all files
      void setSkipped​(boolean[] toChange, boolean setSkipped)
      Sets a file to skipped status to setSkipped if toChanged is true for the index.
      default boolean[] setStorageTypes​(boolean[] toChange, int newStroageType)
      Sets a file's storage type to newStorageType only if toChanged is true for the index.
      boolean[] setStorageTypes​(boolean[] toChange, int newStroageType, boolean force)  
    • Method Detail

      • load

        void load​(int[] priorities,
                  boolean[] skipped)
      • setStorageTypes

        default boolean[] setStorageTypes​(boolean[] toChange,
                                          int newStroageType)
        Sets a file's storage type to newStorageType only if toChanged is true for the index.
        Parameters:
        toChange - array size must be # of files in set. Only true values will be set to value of setSkipped
        setSkipped - Whether to set file as skipped or unskipped, when toChange[i] is true
      • setStorageTypes

        boolean[] setStorageTypes​(boolean[] toChange,
                                  int newStroageType,
                                  boolean force)
        Parameters:
        toChange -
        newStroageType -
        force - may discard file state, use with care...
        Returns:
      • setPriority

        void setPriority​(int[] newPriorities)
        Sets the priorities of all files
        Parameters:
        newPriorities - array size must be # of files in set
      • setSkipped

        void setSkipped​(boolean[] toChange,
                        boolean setSkipped)
        Sets a file to skipped status to setSkipped if toChanged is true for the index.
        Parameters:
        toChange - array size must be # of files in set. Only true values will be set to value of setSkipped
        setSkipped - Whether to set file as skipped or unskipped, when toChange[i] is true
      • nbFiles

        int nbFiles()