Class AccountStatsMySqlConfig


  • public class AccountStatsMySqlConfig
    extends java.lang.Object
    • Field Detail

      • DOMAIN_NAMES_TO_REMOVE

        public static final java.lang.String DOMAIN_NAMES_TO_REMOVE
        See Also:
        Constant Field Values
      • UPDATE_BATCH_SIZE

        public static final java.lang.String UPDATE_BATCH_SIZE
        See Also:
        Constant Field Values
      • ENABLE_REWRITE_BATCHED_STATEMENT

        public static final java.lang.String ENABLE_REWRITE_BATCHED_STATEMENT
        See Also:
        Constant Field Values
      • dbInfo

        @Config("account.stats.mysql.db.info")
        @Default("")
        public final java.lang.String dbInfo
        Serialized json containing the information about all mysql end points. This information should be of the following form:
           [
             {
               "url":"mysql-host1"
               "datacenter":"dc1",
               "isWriteable": "true",
               "username":"root",
                     "password":"password"
             },
             {
               "url":"mysql-host2"
               "datacenter":"dc2",
               "isWriteable": "false",
               "username":"root",
                     "password":"password"
             },
             {
               "url":"mysql-host3"
               "datacenter":"dc3",
               "isWriteable": "false",
               "username":"root",
                     "password":"password"
             }
           ]
         
      • domainNamesToRemove

        @Config("account.stats.mysql.domain.names.to.remove")
        @Default("")
        public final java.lang.String domainNamesToRemove
        Domain names to remove from hostname. This is a list of domains names to remove. For example, if your hostname is app1.github.com and you only want to use app1 as the hostname, you can include ".github.com" in this list.
      • updateBatchSize

        @Config("account.stats.mysql.update.batch.size")
        @Default("-1")
        public final int updateBatchSize
        Negative numbers means disable batch. 0 means unlimited batch size. Any positive number means the size of each batch.
      • enableRewriteBatchedStatement

        @Config("account.stats.mysql.enable.rewrite.batched.statements")
        @Default("false")
        public final boolean enableRewriteBatchedStatement
        This configuration is specific for mysql database to better support batch operations. Enable this would give a better batch performance for mysql database.
    • Constructor Detail

      • AccountStatsMySqlConfig

        public AccountStatsMySqlConfig​(VerifiableProperties verifiableProperties)