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 com.github.ambry.account.AccountServiceFactory
primaryAccountServiceFactory
protected com.github.ambry.account.AccountServiceFactory
secondaryAccountServiceFactory
-
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
-
primaryAccountServiceFactory
protected final com.github.ambry.account.AccountServiceFactory primaryAccountServiceFactory
-
secondaryAccountServiceFactory
protected final com.github.ambry.account.AccountServiceFactory secondaryAccountServiceFactory
-
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) throws java.lang.ReflectiveOperationException
Constructor.- Parameters:
verifiableProperties
- The properties to get aCompositeAccountService
instance. Cannot benull
.metricRegistry
- TheMetricRegistry
for metrics tracking. Cannot benull
.- Throws:
java.lang.ReflectiveOperationException
-
-