Package com.github.ambry.account
Class CompositeAccountServiceFactory
- java.lang.Object
-
- com.github.ambry.account.CompositeAccountServiceFactory
-
- All Implemented Interfaces:
com.github.ambry.account.AccountServiceFactory
public class CompositeAccountServiceFactory extends java.lang.Object implements com.github.ambry.account.AccountServiceFactory
Composite account service based implementation ofAccountServiceFactory
. Returns a new instance ofCompositeAccountService
ongetAccountService()
call.
-
-
Field Summary
Fields Modifier and Type Field Description protected AccountServiceMetrics
accountServiceMetrics
protected com.github.ambry.config.CompositeAccountServiceConfig
compositeAccountServiceConfig
protected HelixAccountServiceFactory
helixAccountServiceFactory
protected MySqlAccountServiceFactory
mySqlAccountServiceFactory
-
Constructor Summary
Constructors Constructor Description CompositeAccountServiceFactory(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
-
accountServiceMetrics
protected final AccountServiceMetrics accountServiceMetrics
-
helixAccountServiceFactory
protected final HelixAccountServiceFactory helixAccountServiceFactory
-
mySqlAccountServiceFactory
protected final MySqlAccountServiceFactory mySqlAccountServiceFactory
-
compositeAccountServiceConfig
protected final com.github.ambry.config.CompositeAccountServiceConfig compositeAccountServiceConfig
-
-
Constructor Detail
-
CompositeAccountServiceFactory
public CompositeAccountServiceFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry)
Constructor.- Parameters:
verifiableProperties
- The properties to get aCompositeAccountService
instance. Cannot benull
.metricRegistry
- TheMetricRegistry
for metrics tracking. Cannot benull
.
-
-