public class BlacklistedDirectories extends java.lang.Object implements BlacklistedDirectoriesMBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MBEAN_NAME |
Modifier and Type | Method and Description |
---|---|
static void |
clearUnwritableUnsafe()
Testing only!
Clear the set of unwritable directories.
|
java.util.Set<java.io.File> |
getUnreadableDirectories() |
java.util.Set<java.io.File> |
getUnwritableDirectories() |
static boolean |
isUnreadable(java.io.File directory)
Tells whether or not the directory is blacklisted for reads.
|
static boolean |
isUnwritable(java.io.File directory)
Tells whether or not the directory is blacklisted for writes.
|
void |
markUnreadable(java.lang.String path) |
void |
markUnwritable(java.lang.String path) |
static java.io.File |
maybeMarkUnreadable(java.io.File path)
Adds parent directory of the file (or the file itself, if it is a directory)
to the set of unreadable directories.
|
static java.io.File |
maybeMarkUnwritable(java.io.File path)
Adds parent directory of the file (or the file itself, if it is a directory)
to the set of unwritable directories.
|
public static final java.lang.String MBEAN_NAME
public java.util.Set<java.io.File> getUnreadableDirectories()
getUnreadableDirectories
in interface BlacklistedDirectoriesMBean
public java.util.Set<java.io.File> getUnwritableDirectories()
getUnwritableDirectories
in interface BlacklistedDirectoriesMBean
public void markUnreadable(java.lang.String path)
markUnreadable
in interface BlacklistedDirectoriesMBean
public void markUnwritable(java.lang.String path)
markUnwritable
in interface BlacklistedDirectoriesMBean
public static java.io.File maybeMarkUnreadable(java.io.File path)
public static java.io.File maybeMarkUnwritable(java.io.File path)
public static void clearUnwritableUnsafe()
public static boolean isUnreadable(java.io.File directory)
public static boolean isUnwritable(java.io.File directory)
Copyright © 2018 The Apache Software Foundation