public class RecoveryStrategy extends Object implements Runnable, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
RecoveryStrategy.Builder |
static interface |
RecoveryStrategy.RecoveryListener |
Modifier and Type | Field and Description |
---|---|
static Runnable |
testing_beforeReplayBufferingUpdates |
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) |
void |
doSyncOrReplicateRecovery(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) |
public static Runnable testing_beforeReplayBufferingUpdates
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 void doSyncOrReplicateRecovery(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.