Package org.apache.solr.cloud
Class RecoveryStrategy
- java.lang.Object
-
- org.apache.solr.cloud.RecoveryStrategy
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
public class RecoveryStrategy extends Object implements Runnable, Closeable
This class may change in future and customisations are not supported between versions in terms of API or back compat behaviour.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecoveryStrategy.Builderstatic interfaceRecoveryStrategy.RecoveryListener
-
Field Summary
Fields Modifier and Type Field Description static Runnabletesting_beforeReplayBufferingUpdates
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecoveryStrategy(CoreContainer cc, CoreDescriptor cd, RecoveryStrategy.RecoveryListener recoveryListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddoRecovery(SolrCore core)voiddoSyncOrReplicateRecovery(SolrCore core)intgetMaxRetries()booleangetRecoveringAfterStartup()protected StringgetReplicateLeaderUrl(org.apache.solr.common.cloud.ZkNodeProps leaderprops)This method may change in future and customisations are not supported between versions in terms of API or back compat behaviour.intgetStartingRecoveryDelayMilliSeconds()intgetWaitForUpdatesWithStaleStatePauseMilliSeconds()booleanisClosed()voidrun()voidsetMaxRetries(int maxRetries)voidsetRecoveringAfterStartup(boolean recoveringAfterStartup)voidsetStartingRecoveryDelayMilliSeconds(int startingRecoveryDelayMilliSeconds)voidsetWaitForUpdatesWithStaleStatePauseMilliSeconds(int waitForUpdatesWithStaleStatePauseMilliSeconds)
-
-
-
Field Detail
-
testing_beforeReplayBufferingUpdates
public static Runnable testing_beforeReplayBufferingUpdates
-
-
Constructor Detail
-
RecoveryStrategy
protected RecoveryStrategy(CoreContainer cc, CoreDescriptor cd, RecoveryStrategy.RecoveryListener recoveryListener)
-
-
Method Detail
-
getWaitForUpdatesWithStaleStatePauseMilliSeconds
public final int getWaitForUpdatesWithStaleStatePauseMilliSeconds()
-
setWaitForUpdatesWithStaleStatePauseMilliSeconds
public final void setWaitForUpdatesWithStaleStatePauseMilliSeconds(int waitForUpdatesWithStaleStatePauseMilliSeconds)
-
getMaxRetries
public final int getMaxRetries()
-
setMaxRetries
public final void setMaxRetries(int maxRetries)
-
getStartingRecoveryDelayMilliSeconds
public final int getStartingRecoveryDelayMilliSeconds()
-
setStartingRecoveryDelayMilliSeconds
public final void setStartingRecoveryDelayMilliSeconds(int startingRecoveryDelayMilliSeconds)
-
getRecoveringAfterStartup
public final boolean getRecoveringAfterStartup()
-
setRecoveringAfterStartup
public final void setRecoveringAfterStartup(boolean recoveringAfterStartup)
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getReplicateLeaderUrl
protected String getReplicateLeaderUrl(org.apache.solr.common.cloud.ZkNodeProps leaderprops)
This method may change in future and customisations are not supported between versions in terms of API or back compat behaviour.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
doSyncOrReplicateRecovery
public final void doSyncOrReplicateRecovery(SolrCore core) throws Exception
- Throws:
Exception
-
isClosed
public final boolean isClosed()
-
-