Class MostUsableSpaceStrategy

    • Constructor Detail

      • MostUsableSpaceStrategy

        @DataBoundConstructor
        public MostUsableSpaceStrategy()
    • Method Detail

      • setEstimatedWorkspaceSize

        @DataBoundSetter
        public void setEstimatedWorkspaceSize​(long estimatedWorkspaceSize)
        Description copied from class: DiskAllocationStrategy
        Sets the estimated workspace size. It must be set in MB.
        Overrides:
        setEstimatedWorkspaceSize in class DiskAllocationStrategy
        Parameters:
        estimatedWorkspaceSize - the estimated workspace size in MB
      • allocateDisk

        @Nonnull
        public Disk allocateDisk​(@Nonnull
                                 List<Disk> disks)
                          throws IOException
        Description copied from class: DiskAllocationStrategy
        Allocates a disk from the given list. The list contains at least one Disk entry.
        Specified by:
        allocateDisk in class DiskAllocationStrategy
        Parameters:
        disks - the entries from which to allocate a disk. The list has at least one element
        Returns:
        the selected disk
        Throws:
        IOException - if any mandatory field is missing from the Disk entry, or if the disk allocation fails for any reason