org.apache.cassandra.db
Class BlacklistedDirectories

java.lang.Object
  extended by org.apache.cassandra.db.BlacklistedDirectories

public class BlacklistedDirectories
extends java.lang.Object


Constructor Summary
BlacklistedDirectories()
           
 
Method Summary
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.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlacklistedDirectories

public BlacklistedDirectories()
Method Detail

maybeMarkUnreadable

public 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.

Returns:
the blacklisted directory or null if nothing has been added to the list.

maybeMarkUnwritable

public 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.

Returns:
the blacklisted directory or null if nothing has been added to the list.

isUnreadable

public static boolean isUnreadable(java.io.File directory)
Tells whether or not the directory is blacklisted for reads.

Returns:
whether or not the directory is blacklisted for reads.

isUnwritable

public static boolean isUnwritable(java.io.File directory)
Tells whether or not the directory is blacklisted for writes.

Returns:
whether or not the directory is blacklisted for reads.


Copyright © 2012 The Apache Software Foundation