Class FileSystemSpaceService

java.lang.Object
io.bdeploy.jersey.fs.FileSystemSpaceService

@Service public class FileSystemSpaceService extends Object
  • Constructor Details

    • FileSystemSpaceService

      public FileSystemSpaceService()
  • Method Details

    • getFreeSpace

      public long getFreeSpace(Path path)
    • hasFreeSpace

      public boolean hasFreeSpace(Path path)
      Parameters:
      path - the path to check
      Returns:
      whether this path (or it's parent directory) has enough free space as configured in the MinionState's storageMinFree property.