@Private
@Unstable
public class DiskChecker
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DiskChecker.DiskErrorException |
|
static class |
DiskChecker.DiskOutOfSpaceException |
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
DiskChecker() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
checkDir(java.io.File dir) |
Create the directory if it doesn't exist and check that dir is readable,
writable and executable
|
static void |
checkDir(LocalFileSystem localFS,
Path dir,
FsPermission expected) |
Create the local directory if necessary, check permissions and also ensure
it can be read from and written into.
|
static void |
checkDirWithDiskIo(java.io.File dir) |
Create the directory if it doesn't exist and check that dir is
readable, writable and executable.
|
static void |
checkDirWithDiskIo(LocalFileSystem localFS,
Path dir,
FsPermission expected) |
Create the local directory if necessary, also ensure permissions
allow it to be read from and written into.
|
public static void checkDir(java.io.File dir)
throws DiskChecker.DiskErrorException
dir - dir.DiskChecker.DiskErrorException - disk problem.public static void checkDirWithDiskIo(java.io.File dir)
throws DiskChecker.DiskErrorException
dir - dir.DiskChecker.DiskErrorException - disk problem.public static void checkDir(LocalFileSystem localFS, Path dir, FsPermission expected) throws DiskChecker.DiskErrorException, java.io.IOException
localFS - local filesystemdir - directoryexpected - permissionDiskChecker.DiskErrorException - disk problem.java.io.IOException - raised on errors performing I/O.public static void checkDirWithDiskIo(LocalFileSystem localFS, Path dir, FsPermission expected) throws DiskChecker.DiskErrorException, java.io.IOException
localFS - local filesystemdir - directoryexpected - permissionDiskChecker.DiskErrorException - disk problem.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.