|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.core.DirectoryFactory
public abstract class DirectoryFactory
Provides access to a Directory implementation. You must release every Directory that you get.
| Constructor Summary | |
|---|---|
DirectoryFactory()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Close the this and all of the Directories it contains. |
protected abstract Directory |
create(String path)
Creates a new Directory for a given path. |
abstract boolean |
exists(String path)
Returns true if a Directory exists for a given path. |
abstract Directory |
get(String path,
String rawLockType)
Returns the Directory for a given path, using the specified rawLockType. |
abstract Directory |
get(String path,
String rawLockType,
boolean forceNew)
Returns the Directory for a given path, using the specified rawLockType. |
abstract void |
incRef(Directory directory)
Increment the number of references to the given Directory. |
abstract void |
release(Directory directory)
Releases the Directory so that it may be closed when it is no longer referenced. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin |
|---|
init |
| Constructor Detail |
|---|
public DirectoryFactory()
| Method Detail |
|---|
public abstract void close()
throws IOException
close in interface CloseableIOException
protected abstract Directory create(String path)
throws IOException
IOExceptionpublic abstract boolean exists(String path)
public abstract Directory get(String path,
String rawLockType)
throws IOException
IOException
public abstract Directory get(String path,
String rawLockType,
boolean forceNew)
throws IOException
IOExceptionpublic abstract void incRef(Directory directory)
public abstract void release(Directory directory)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||