public abstract class SolrCoreState extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SolrCoreState.IndexWriterCloser |
| Constructor and Description |
|---|
SolrCoreState() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cancelRecovery() |
abstract void |
decref(SolrCoreState.IndexWriterCloser closer)
Decrement the number of references to this state.
|
abstract void |
doRecovery(CoreContainer cc,
String name) |
abstract DirectoryFactory |
getDirectoryFactory() |
abstract RefCounted<IndexWriter> |
getIndexWriter(SolrCore core)
Get the current IndexWriter.
|
Object |
getUpdateLock() |
abstract void |
incref()
Increment the number of references to this state.
|
abstract void |
newIndexWriter(SolrCore core,
boolean rollback)
Force the creation of a new IndexWriter using the settings from the given
SolrCore.
|
abstract void |
rollbackIndexWriter(SolrCore core)
Rollback the current IndexWriter.
|
public Object getUpdateLock()
public abstract void newIndexWriter(SolrCore core, boolean rollback) throws IOException
core - rollback - close IndexWriter if false, else rollbackIOExceptionpublic abstract RefCounted<IndexWriter> getIndexWriter(SolrCore core) throws IOException
SolrCore.IOExceptionpublic abstract void decref(SolrCoreState.IndexWriterCloser closer) throws IOException
IOExceptionpublic abstract void incref()
public abstract void rollbackIndexWriter(SolrCore core) throws IOException
SolrCore.core - IOExceptionpublic abstract DirectoryFactory getDirectoryFactory()
DirectoryFactory that should be used.public abstract void doRecovery(CoreContainer cc, String name)
public abstract void cancelRecovery()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.