Package org.apache.cassandra.db
Class DisallowedDirectories
java.lang.Object
org.apache.cassandra.db.DisallowedDirectories
- All Implemented Interfaces:
DisallowedDirectoriesMBean
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidTesting only! Clear the set of unwritable directories.static intstatic booleanisUnreadable(File directory) Tells whether or not the directory is disallowed for reads.static booleanisUnwritable(File directory) Tells whether or not the directory is disallowed for writes.voidmarkUnreadable(String path) voidmarkUnwritable(String path) static FilemaybeMarkUnreadable(File path) Adds parent directory of the file (or the file itself, if it is a directory) to the set of unreadable directories.static FilemaybeMarkUnwritable(File path) Adds parent directory of the file (or the file itself, if it is a directory) to the set of unwritable directories.
-
Field Details
-
DEPRECATED_MBEAN_NAME
- See Also:
-
MBEAN_NAME
- See Also:
-
-
Method Details
-
getUnreadableDirectories
- Specified by:
getUnreadableDirectoriesin interfaceDisallowedDirectoriesMBean
-
getUnwritableDirectories
- Specified by:
getUnwritableDirectoriesin interfaceDisallowedDirectoriesMBean
-
markUnreadable
- Specified by:
markUnreadablein interfaceDisallowedDirectoriesMBean
-
markUnwritable
- Specified by:
markUnwritablein interfaceDisallowedDirectoriesMBean
-
maybeMarkUnreadable
Adds parent directory of the file (or the file itself, if it is a directory) to the set of unreadable directories.- Returns:
- the disallowed directory or null if nothing has been added to the list.
-
maybeMarkUnwritable
Adds parent directory of the file (or the file itself, if it is a directory) to the set of unwritable directories.- Returns:
- the disallowed directory or null if nothing has been added to the list.
-
getDirectoriesVersion
public static int getDirectoriesVersion() -
clearUnwritableUnsafe
public static void clearUnwritableUnsafe()Testing only! Clear the set of unwritable directories. -
isUnreadable
Tells whether or not the directory is disallowed for reads.- Returns:
- whether or not the directory is disallowed for reads.
-
isUnwritable
Tells whether or not the directory is disallowed for writes.- Returns:
- whether or not the directory is disallowed for reads.
-