public class HelixAccountServiceFactory
extends java.lang.Object
implements com.github.ambry.account.AccountServiceFactory
Helix
-based implementation of HelixAccountServiceFactory
.
Returns a new instance of HelixAccountService
on getAccountService()
call.Modifier and Type | Field and 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 |
Modifier | Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
com.github.ambry.account.AccountService |
getAccountService() |
protected final com.github.ambry.config.HelixPropertyStoreConfig storeConfig
protected final com.github.ambry.config.HelixAccountServiceConfig accountServiceConfig
protected final AccountServiceMetrics accountServiceMetrics
protected final com.github.ambry.commons.Notifier<java.lang.String> notifier
public HelixAccountServiceFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry)
verifiableProperties
- The properties to get a HelixAccountService
instance. Cannot be null
.metricRegistry
- The MetricRegistry
for metrics tracking. Cannot be null
.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)
storeConfig
- The HelixPropertyStoreConfig
to use.accountServiceConfig
- The HelixAccountServiceConfig
to use.accountServiceMetrics
- The AccountServiceMetrics
to report metrics.notifier
- The Notifier
to start a HelixAccountService
.