public abstract class RecoveryOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RecoveryOptions.RecoveryPolicy |
Constructor and Description |
---|
RecoveryOptions() |
Modifier and Type | Method and Description |
---|---|
static RecoveryOptions |
create() |
abstract int |
getQuorum() |
abstract RecoveryOptions.RecoveryPolicy |
getRecoveryPolicy() |
abstract int |
getThreadCount() |
abstract boolean |
isKeepFiles()
Returns boolean indicating if recovery should delete files or not after completion
|
abstract boolean |
isLoadWithData()
Returns boolean indicating if recovery should be done with load data or not
|
abstract RecoveryOptions |
setKeepFiles(boolean keepFiles) |
abstract RecoveryOptions |
setLoadWithData(boolean loadWithData) |
abstract RecoveryOptions |
setQuorum(int seederCount)
Set quorum size for recovery to start.
|
abstract RecoveryOptions |
setRecoveryPolicy(RecoveryOptions.RecoveryPolicy recoveryPolicy)
Set RecoveryPolicy
|
abstract RecoveryOptions |
setThreadCount(int threadCount)
Set thread count for metaspace recovery.
|
public static RecoveryOptions create()
public abstract RecoveryOptions setLoadWithData(boolean loadWithData)
loadWithData
- Set if recovery should be done with data load or notpublic abstract boolean isLoadWithData()
public abstract RecoveryOptions setKeepFiles(boolean keepFiles)
keepFiles
- Set if recovery should not delete files after completionpublic abstract boolean isKeepFiles()
public abstract RecoveryOptions setQuorum(int seederCount)
seederCount
- Quorum is defined to be minumum number of seeders in space for recovery to initiatepublic abstract int getQuorum()
public abstract RecoveryOptions setThreadCount(int threadCount)
threadCount
- This is defined to be number of threads to perform parallel recovery of spacespublic abstract int getThreadCount()
public abstract RecoveryOptions setRecoveryPolicy(RecoveryOptions.RecoveryPolicy recoveryPolicy)
recoveryPolicy
- public abstract RecoveryOptions.RecoveryPolicy getRecoveryPolicy()
Copyright (c) 2014 Cloud Software Group, Inc. All rights reserved.