public abstract class SolrCoreState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SolrCoreState.CoreIsClosedException |
static interface |
SolrCoreState.IndexWriterCloser |
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed |
Constructor and Description |
---|
SolrCoreState() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cancelRecovery() |
abstract void |
close(SolrCoreState.IndexWriterCloser closer) |
abstract void |
closeIndexWriter(SolrCore core,
boolean rollback)
Expert method that closes the IndexWriter - you must call
openIndexWriter(SolrCore)
in a finally block after calling this method. |
boolean |
decrefSolrCoreState(SolrCoreState.IndexWriterCloser closer) |
abstract void |
doRecovery(CoreContainer cc,
CoreDescriptor cd) |
abstract Callable |
getCdcrBootstrapCallable() |
abstract Future<Boolean> |
getCdcrBootstrapFuture() |
abstract boolean |
getCdcrBootstrapRunning() |
abstract Lock |
getCommitLock() |
abstract DirectoryFactory |
getDirectoryFactory() |
abstract RefCounted<IndexWriter> |
getIndexWriter(SolrCore core)
Get the current IndexWriter.
|
abstract boolean |
getLastReplicateIndexSuccess() |
abstract ActionThrottle |
getLeaderThrottle() |
abstract Sort |
getMergePolicySort()
Get the current Sort of the current IndexWriter's MergePolicy..
|
abstract Lock |
getRecoveryLock() |
abstract RecoveryStrategy.Builder |
getRecoveryStrategyBuilder() |
Object |
getReloadLock() |
Throwable |
getTragicException() |
Object |
getUpdateLock() |
void |
increfSolrCoreState() |
abstract void |
newIndexWriter(SolrCore core,
boolean rollback)
Force the creation of a new IndexWriter using the settings from the given
SolrCore.
|
abstract void |
openIndexWriter(SolrCore core)
Expert method that opens the IndexWriter - you must call
closeIndexWriter(SolrCore, boolean)
first, and then call this method in a finally block. |
abstract void |
rollbackIndexWriter(SolrCore core)
Rollback the current IndexWriter.
|
abstract void |
setCdcrBootstrapCallable(Callable cdcrBootstrapCallable) |
abstract void |
setCdcrBootstrapFuture(Future<Boolean> cdcrBootstrapFuture) |
abstract void |
setCdcrBootstrapRunning(boolean cdcrRunning) |
abstract void |
setLastReplicateIndexSuccess(boolean success) |
public Object getUpdateLock()
public Object getReloadLock()
public void increfSolrCoreState()
public boolean decrefSolrCoreState(SolrCoreState.IndexWriterCloser closer)
public abstract Lock getCommitLock()
public abstract void newIndexWriter(SolrCore core, boolean rollback) throws IOException
rollback
- close IndexWriter if false, else rollbackIOException
- If there is a low-level I/O error.public abstract void closeIndexWriter(SolrCore core, boolean rollback) throws IOException
openIndexWriter(SolrCore)
in a finally block after calling this method.core
- that the IW belongs torollback
- true if IW should rollback rather than closeIOException
- If there is a low-level I/O error.public abstract void openIndexWriter(SolrCore core) throws IOException
closeIndexWriter(SolrCore, boolean)
first, and then call this method in a finally block.core
- that the IW belongs toIOException
- 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 rollbackIndexWriter(SolrCore core) throws IOException
SolrCore
.IOException
- If there is a low-level I/O error.public abstract Sort getMergePolicySort() throws IOException
IOException
- If there is a low-level I/O error.public abstract DirectoryFactory getDirectoryFactory()
DirectoryFactory
that should be used.public abstract RecoveryStrategy.Builder getRecoveryStrategyBuilder()
RecoveryStrategy.Builder
that should be used.public abstract void doRecovery(CoreContainer cc, CoreDescriptor cd)
public abstract void cancelRecovery()
public abstract void close(SolrCoreState.IndexWriterCloser closer)
public abstract ActionThrottle getLeaderThrottle()
public abstract boolean getLastReplicateIndexSuccess()
public abstract void setLastReplicateIndexSuccess(boolean success)
public abstract Lock getRecoveryLock()
public abstract boolean getCdcrBootstrapRunning()
public abstract void setCdcrBootstrapRunning(boolean cdcrRunning)
public abstract void setCdcrBootstrapFuture(Future<Boolean> cdcrBootstrapFuture)
public abstract Callable getCdcrBootstrapCallable()
public abstract void setCdcrBootstrapCallable(Callable cdcrBootstrapCallable)
public Throwable getTragicException() throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.