Package com.github.ambry.account
Class HelixAccountServiceFactory
- java.lang.Object
-
- com.github.ambry.account.HelixAccountServiceFactory
-
- All Implemented Interfaces:
com.github.ambry.account.AccountServiceFactory
public class HelixAccountServiceFactory extends java.lang.Object implements com.github.ambry.account.AccountServiceFactory
Helix
-based implementation ofHelixAccountServiceFactory
. Returns a new instance ofHelixAccountService
ongetAccountService()
call.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.github.ambry.config.HelixAccountServiceConfig
accountServiceConfig
protected AccountServiceMetrics
accountServiceMetrics
protected com.github.ambry.commons.Notifier<java.lang.String>
notifier
protected com.github.ambry.config.HelixPropertyStoreConfig
storeConfig
-
Constructor Summary
Constructors Modifier Constructor Description protected
HelixAccountServiceFactory(com.github.ambry.config.HelixPropertyStoreConfig storeConfig, com.github.ambry.config.HelixAccountServiceConfig accountServiceConfig, AccountServiceMetrics accountServiceMetrics, com.github.ambry.commons.Notifier<java.lang.String> notifier)
Constructor.HelixAccountServiceFactory(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
-
storeConfig
protected final com.github.ambry.config.HelixPropertyStoreConfig storeConfig
-
accountServiceConfig
protected final com.github.ambry.config.HelixAccountServiceConfig accountServiceConfig
-
accountServiceMetrics
protected final AccountServiceMetrics accountServiceMetrics
-
notifier
protected final com.github.ambry.commons.Notifier<java.lang.String> notifier
-
-
Constructor Detail
-
HelixAccountServiceFactory
public HelixAccountServiceFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry)
Constructor.- Parameters:
verifiableProperties
- The properties to get aHelixAccountService
instance. Cannot benull
.metricRegistry
- TheMetricRegistry
for metrics tracking. Cannot benull
.
-
HelixAccountServiceFactory
protected HelixAccountServiceFactory(com.github.ambry.config.HelixPropertyStoreConfig storeConfig, com.github.ambry.config.HelixAccountServiceConfig accountServiceConfig, AccountServiceMetrics accountServiceMetrics, com.github.ambry.commons.Notifier<java.lang.String> notifier)
Constructor.- Parameters:
storeConfig
- TheHelixPropertyStoreConfig
to use.accountServiceConfig
- TheHelixAccountServiceConfig
to use.accountServiceMetrics
- TheAccountServiceMetrics
to report metrics.notifier
- TheNotifier
to start aHelixAccountService
.
-
-