Class 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 of HelixAccountServiceFactory.

    Returns a new instance of HelixAccountService on getAccountService() call.

    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • storeConfig

        protected final com.github.ambry.config.HelixPropertyStoreConfig storeConfig
      • accountServiceConfig

        protected final com.github.ambry.config.HelixAccountServiceConfig accountServiceConfig
      • 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 a HelixAccountService instance. Cannot be null.
        metricRegistry - The MetricRegistry for metrics tracking. Cannot be null.
      • 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 - The HelixPropertyStoreConfig to use.
        accountServiceConfig - The HelixAccountServiceConfig to use.
        accountServiceMetrics - The AccountServiceMetrics to report metrics.
        notifier - The Notifier to start a HelixAccountService.
    • Method Detail

      • getAccountService

        public com.github.ambry.account.AccountService getAccountService()
        Specified by:
        getAccountService in interface com.github.ambry.account.AccountServiceFactory