Package org.apache.solr.cloud
Class RecoveryStrategy
java.lang.Object
org.apache.solr.cloud.RecoveryStrategy
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
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 ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecoveryStrategy(CoreContainer cc, CoreDescriptor cd, RecoveryStrategy.RecoveryListener recoveryListener) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()final voiddoRecovery(SolrCore core) final voidfinal intfinal booleanprotected 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.final intfinal intfinal booleanisClosed()final voidrun()final voidsetMaxRetries(int maxRetries) final voidsetRecoveringAfterStartup(boolean recoveringAfterStartup) final voidsetStartingRecoveryDelayMilliSeconds(int startingRecoveryDelayMilliSeconds) final voidsetWaitForUpdatesWithStaleStatePauseMilliSeconds(int waitForUpdatesWithStaleStatePauseMilliSeconds)
-
Field Details
-
testing_beforeReplayBufferingUpdates
-
-
Constructor Details
-
RecoveryStrategy
protected RecoveryStrategy(CoreContainer cc, CoreDescriptor cd, RecoveryStrategy.RecoveryListener recoveryListener)
-
-
Method Details
-
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
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.
-
run
public final void run() -
doRecovery
- Throws:
Exception
-
doSyncOrReplicateRecovery
- Throws:
Exception
-
isClosed
public final boolean isClosed()
-