Package com.github.ambry.config
Class ServerConfig
- java.lang.Object
-
- com.github.ambry.config.ServerConfig
-
public class ServerConfig extends java.lang.Object
The configs for the server
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
serverAccountServiceFactory
Implementation class for accountServiceFactoryboolean
serverHandleUndeleteRequestEnabled
True to enable ambry server handling undelete requests.java.lang.String
serverMessageTransformer
Implementation for message transformation.long
serverParticipantsConsistencyCheckerPeriodSec
The period of participants consistency checker in second.long
serverQuotaStatsAggregateIntervalInMinutes
The frequency in mins at which cluster wide quota stats will be aggregatedint
serverRequestHandlerNumOfThreads
The number of request handler threads used by the server to process requestsint
serverSchedulerNumOfthreads
The number of scheduler threads the server will use to perform background tasks (store, replication)java.lang.String
serverSecurityServiceFactory
The ServerSecurityServiceFactory that needs to validate connections and requests coming to server.boolean
serverStatsPublishHealthReportEnabled
The option to enable or disable publishing stats via Health Reportsboolean
serverStatsPublishLocalEnabled
The option to enable or disable publishing stats locally.java.util.List<java.lang.String>
serverStatsReportsToPublish
The comma separated list of stats reports to publish in Helix.java.lang.String
serverStoreKeyConverterFactory
Implementation class for StoreKeyConverterFactoryboolean
serverValidateRequestBasedOnStoreState
The option to enable or disable validating request based on store state.
-
Constructor Summary
Constructors Constructor Description ServerConfig(VerifiableProperties verifiableProperties)
-
-
-
Field Detail
-
serverRequestHandlerNumOfThreads
@Config("server.request.handler.num.of.threads") @Default("7") public final int serverRequestHandlerNumOfThreads
The number of request handler threads used by the server to process requests
-
serverSchedulerNumOfthreads
@Config("server.scheduler.num.of.threads") @Default("10") public final int serverSchedulerNumOfthreads
The number of scheduler threads the server will use to perform background tasks (store, replication)
-
serverStatsPublishLocalEnabled
@Config("server.stats.publish.local.enabled") @Default("false") public final boolean serverStatsPublishLocalEnabled
The option to enable or disable publishing stats locally.
-
serverStatsPublishHealthReportEnabled
@Config("server.stats.publish.health.report.enabled") @Default("false") public final boolean serverStatsPublishHealthReportEnabled
The option to enable or disable publishing stats via Health Reports
-
serverQuotaStatsAggregateIntervalInMinutes
@Config("server.quota.stats.aggregate.interval.in.minutes") @Default("60") public final long serverQuotaStatsAggregateIntervalInMinutes
The frequency in mins at which cluster wide quota stats will be aggregated
-
serverStoreKeyConverterFactory
@Config("server.store.key.converter.factory") @Default("com.github.ambry.store.StoreKeyConverterFactoryImpl") public final java.lang.String serverStoreKeyConverterFactory
Implementation class for StoreKeyConverterFactory
-
serverMessageTransformer
@Config("server.message.transformer") @Default("com.github.ambry.messageformat.ValidatingTransformer") public final java.lang.String serverMessageTransformer
Implementation for message transformation.
-
serverStatsReportsToPublish
@Config("server.stats.reports.to.publish") @Default("") public final java.util.List<java.lang.String> serverStatsReportsToPublish
The comma separated list of stats reports to publish in Helix.
-
serverValidateRequestBasedOnStoreState
@Config("server.validate.request.based.on.store.state") @Default("false") public final boolean serverValidateRequestBasedOnStoreState
The option to enable or disable validating request based on store state.
-
serverHandleUndeleteRequestEnabled
@Config("server.handle.undelete.request.enabled") @Default("false") public final boolean serverHandleUndeleteRequestEnabled
True to enable ambry server handling undelete requests.
-
serverAccountServiceFactory
@Config("server.account.service.factory") @Default("com.github.ambry.account.InMemoryUnknownAccountServiceFactory") public final java.lang.String serverAccountServiceFactory
Implementation class for accountServiceFactory
-
serverParticipantsConsistencyCheckerPeriodSec
@Config("server.participants.consistency.checker.period.sec") @Default("0") public final long serverParticipantsConsistencyCheckerPeriodSec
The period of participants consistency checker in second. If is set to 0, the checker is disabled.
-
-
Constructor Detail
-
ServerConfig
public ServerConfig(VerifiableProperties verifiableProperties)
-
-