Package com.github.ambry.account.mysql
Class MySqlAccountStoreFactory
- java.lang.Object
-
- com.github.ambry.account.mysql.MySqlAccountStoreFactory
-
public class MySqlAccountStoreFactory extends java.lang.Object
Factory class to return an instance ofMySqlAccountStore
ongetMySqlAccountStore()
call
-
-
Field Summary
Fields Modifier and Type Field Description protected com.github.ambry.config.MySqlAccountServiceConfig
config
protected java.lang.String
localDatacenter
protected com.github.ambry.mysql.MySqlMetrics
metrics
-
Constructor Summary
Constructors Constructor Description MySqlAccountStoreFactory(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 MySqlAccountStore
getMySqlAccountStore()
Returns an instance of theMySqlAccountStore
that the factory generates.
-
-
-
Constructor Detail
-
MySqlAccountStoreFactory
public MySqlAccountStoreFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry)
Constructor.- Parameters:
verifiableProperties
- The properties to get aMySqlAccountStore
instance. Cannot benull
.
-
-
Method Detail
-
getMySqlAccountStore
public MySqlAccountStore getMySqlAccountStore() throws java.sql.SQLException
Returns an instance of theMySqlAccountStore
that the factory generates.- Returns:
- an instance of
MySqlAccountStore
generated by this factory. - Throws:
java.sql.SQLException
-
-