Package com.github.ambry.config
Class AccountServiceConfig
- java.lang.Object
-
- com.github.ambry.config.AccountServiceConfig
-
- Direct Known Subclasses:
HelixAccountServiceConfig
,JsonAccountConfig
,MySqlAccountServiceConfig
public class AccountServiceConfig extends java.lang.Object
Common config forAccountServiceConfig
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACCOUNT_SERVICE_PREFIX
static java.lang.String
CONTAINER_DEPRECATION_RETENTION_DAYS
static java.lang.String
CONTAINER_ID_START_NUMBER
int
containerDeprecationRetentionDays
The period of time during which the deprecated container can be restored.short
containerIdStartNumber
The numeric container Id to be used for the first container created within an account.static java.lang.String
IGNORE_VERSION_MISMATCH
boolean
ignoreVersionMismatch
If true, AccountService would ignore version mismatch while updating Accounts and Containers.static java.lang.String
MAX_RETRY_COUNT_ON_UPDATE_FAILURE
int
maxRetryCountOnUpdateFailure
The number of retry times when the update accounts fails by marking delete_in_progress container status to inactive;static java.lang.String
RETRY_DELAY_MS
long
retryDelayMs
The sleep time between each retry action when the update accounts fails by marking delete_in_progress container status to inactive;
-
Constructor Summary
Constructors Constructor Description AccountServiceConfig(VerifiableProperties verifiableProperties)
-
-
-
Field Detail
-
ACCOUNT_SERVICE_PREFIX
public static final java.lang.String ACCOUNT_SERVICE_PREFIX
- See Also:
- Constant Field Values
-
CONTAINER_ID_START_NUMBER
public static final java.lang.String CONTAINER_ID_START_NUMBER
- See Also:
- Constant Field Values
-
MAX_RETRY_COUNT_ON_UPDATE_FAILURE
public static final java.lang.String MAX_RETRY_COUNT_ON_UPDATE_FAILURE
- See Also:
- Constant Field Values
-
RETRY_DELAY_MS
public static final java.lang.String RETRY_DELAY_MS
- See Also:
- Constant Field Values
-
IGNORE_VERSION_MISMATCH
public static final java.lang.String IGNORE_VERSION_MISMATCH
- See Also:
- Constant Field Values
-
CONTAINER_DEPRECATION_RETENTION_DAYS
public static final java.lang.String CONTAINER_DEPRECATION_RETENTION_DAYS
- See Also:
- Constant Field Values
-
containerIdStartNumber
@Config("account.service.container.id.start.number") @Default("1") public final short containerIdStartNumber
The numeric container Id to be used for the first container created within an account.
-
maxRetryCountOnUpdateFailure
@Config("account.service.max.retry.count.on.update.failure") @Default("10") public final int maxRetryCountOnUpdateFailure
The number of retry times when the update accounts fails by marking delete_in_progress container status to inactive;
-
retryDelayMs
@Config("account.service.retry.delay.ms") @Default("1000") public final long retryDelayMs
The sleep time between each retry action when the update accounts fails by marking delete_in_progress container status to inactive;
-
ignoreVersionMismatch
@Config("account.service.ignore.version.mismatch") @Default("false") public final boolean ignoreVersionMismatch
If true, AccountService would ignore version mismatch while updating Accounts and Containers.
-
containerDeprecationRetentionDays
@Config("account.service.container.deprecation.retention.days") public final int containerDeprecationRetentionDays
The period of time during which the deprecated container can be restored. After retention time, compaction starts to compact blobs in this container.
-
-
Constructor Detail
-
AccountServiceConfig
public AccountServiceConfig(VerifiableProperties verifiableProperties)
-
-