|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.solr.update.SolrCoreState
public abstract class SolrCoreState
The state in this class can be easily shared between SolrCores across SolrCore reloads.
| Nested Class Summary | |
|---|---|
static interface |
SolrCoreState.IndexWriterCloser
|
| Constructor Summary | |
|---|---|
SolrCoreState()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SolrCoreState()
| Method Detail |
|---|
public Object getUpdateLock()
public abstract void newIndexWriter(SolrCore core,
boolean rollback)
throws IOException
rollback - close IndexWriter if false, else rollback
IOException - If there is a low-level I/O error.
public abstract RefCounted<IndexWriter> getIndexWriter(SolrCore core)
throws IOException
SolrCore.
IOException - If there is a low-level I/O error.
public abstract void decref(SolrCoreState.IndexWriterCloser closer)
throws IOException
IOException - If there is a low-level I/O error.public abstract void incref()
public abstract void rollbackIndexWriter(SolrCore core)
throws IOException
SolrCore.
IOException - If there is a low-level I/O error.public abstract DirectoryFactory getDirectoryFactory()
DirectoryFactory that should be used.
public abstract void doRecovery(CoreContainer cc,
String name)
public abstract void cancelRecovery()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||