public class RecoveryStrategy extends Thread implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
RecoveryStrategy.Builder |
static interface |
RecoveryStrategy.RecoveryListener |
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
RecoveryStrategy(CoreContainer cc,
CoreDescriptor cd,
RecoveryStrategy.RecoveryListener recoveryListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
doRecovery(SolrCore core) |
int |
getMaxRetries() |
boolean |
getRecoveringAfterStartup() |
protected String |
getReplicateLeaderUrl(ZkNodeProps leaderprops)
This method may change in future and customisations are not supported
between versions in terms of API or back compat behaviour.
|
int |
getStartingRecoveryDelayMilliSeconds() |
int |
getWaitForUpdatesWithStaleStatePauseMilliSeconds() |
boolean |
isClosed() |
void |
run() |
void |
setMaxRetries(int maxRetries) |
void |
setRecoveringAfterStartup(boolean recoveringAfterStartup) |
void |
setStartingRecoveryDelayMilliSeconds(int startingRecoveryDelayMilliSeconds) |
void |
setWaitForUpdatesWithStaleStatePauseMilliSeconds(int waitForUpdatesWithStaleStatePauseMilliSeconds) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected RecoveryStrategy(CoreContainer cc, CoreDescriptor cd, RecoveryStrategy.RecoveryListener recoveryListener)
public final int getWaitForUpdatesWithStaleStatePauseMilliSeconds()
public final void setWaitForUpdatesWithStaleStatePauseMilliSeconds(int waitForUpdatesWithStaleStatePauseMilliSeconds)
public final int getMaxRetries()
public final void setMaxRetries(int maxRetries)
public final int getStartingRecoveryDelayMilliSeconds()
public final void setStartingRecoveryDelayMilliSeconds(int startingRecoveryDelayMilliSeconds)
public final boolean getRecoveringAfterStartup()
public final void setRecoveringAfterStartup(boolean recoveringAfterStartup)
public final void close()
close in interface Closeableclose in interface AutoCloseableprotected String getReplicateLeaderUrl(ZkNodeProps leaderprops)
public final void doRecovery(SolrCore core) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic final boolean isClosed()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.