public class RecoveryStrategy extends Thread implements Closeable
Modifier and Type | Class and Description |
---|---|
static class |
RecoveryStrategy.Builder |
static interface |
RecoveryStrategy.RecoveryListener |
Thread.State, Thread.UncaughtExceptionHandler
MAX_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, yield
protected 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 Closeable
close
in interface AutoCloseable
protected String getReplicateLeaderUrl(ZkNodeProps leaderprops)
public final void doRecovery(SolrCore core) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperException
InterruptedException
public final boolean isClosed()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.