Package com.github.ambry.account
Class MySqlAccountServiceFactory
- java.lang.Object
-
- com.github.ambry.account.MySqlAccountServiceFactory
-
- All Implemented Interfaces:
com.github.ambry.account.AccountServiceFactory
public class MySqlAccountServiceFactory extends java.lang.Object implements com.github.ambry.account.AccountServiceFactory
MySql based implementation ofAccountServiceFactory
. Returns a new instance ofMySqlAccountService
ongetAccountService()
call.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.github.ambry.config.MySqlAccountServiceConfig
accountServiceConfig
protected AccountServiceMetrics
accountServiceMetrics
protected MySqlAccountStoreFactory
mySqlAccountStoreFactory
-
Constructor Summary
Constructors Constructor Description MySqlAccountServiceFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.ambry.account.AccountService
getAccountService()
-
-
-
Field Detail
-
accountServiceConfig
protected final com.github.ambry.config.MySqlAccountServiceConfig accountServiceConfig
-
accountServiceMetrics
protected final AccountServiceMetrics accountServiceMetrics
-
mySqlAccountStoreFactory
protected final MySqlAccountStoreFactory mySqlAccountStoreFactory
-
-
Constructor Detail
-
MySqlAccountServiceFactory
public MySqlAccountServiceFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry)
Constructor.- Parameters:
verifiableProperties
- The properties to get aMySqlAccountService
instance. Cannot benull
.metricRegistry
- TheMetricRegistry
for metrics tracking. Cannot benull
.
-
-