Class MySqlAccountStoreFactory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.github.ambry.config.MySqlAccountServiceConfig config  
      protected java.lang.String localDatacenter  
      protected com.github.ambry.mysql.MySqlMetrics metrics  
    • Constructor Summary

      Constructors 
      Constructor Description
      MySqlAccountStoreFactory​(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry)
      Constructor.
    • Field Detail

      • config

        protected final com.github.ambry.config.MySqlAccountServiceConfig config
      • localDatacenter

        protected final java.lang.String localDatacenter
      • metrics

        protected final com.github.ambry.mysql.MySqlMetrics metrics
    • Constructor Detail

      • MySqlAccountStoreFactory

        public MySqlAccountStoreFactory​(com.github.ambry.config.VerifiableProperties verifiableProperties,
                                        com.codahale.metrics.MetricRegistry metricRegistry)
        Constructor.
        Parameters:
        verifiableProperties - The properties to get a MySqlAccountStore instance. Cannot be null.
    • Method Detail

      • getMySqlAccountStore

        public MySqlAccountStore getMySqlAccountStore()
                                               throws java.sql.SQLException
        Returns an instance of the MySqlAccountStore that the factory generates.
        Returns:
        an instance of MySqlAccountStore generated by this factory.
        Throws:
        java.sql.SQLException