类 DruidApplicationConfig

    • 构造器详细资料

      • DruidApplicationConfig

        public DruidApplicationConfig()
    • 方法详细资料

      • withVersion

        public DruidApplicationConfig withVersion​(String version)
        Configure the version of druid. The reference version is as follows:

        image type | image version | druid version supported hadoop | 2.0.0 | 0.12.1

        参数:
        version - The version of druid.
        返回:
        DruidApplicationConfig
      • withMetastore

        public DruidApplicationConfig withMetastore​(String metastore)
        Configure the metastore of druid Server。 By default, the inner metastore is used. And you can also use MySQL by set the metastore to "mysql". If so, you must provide other properties at the same time, including host and port for the MySQL service, the database name, the username and password for accessing MySQL database.
        参数:
        metastore - The type of metastore. Use "default" or "mysql".
        返回:
        DruidApplicationConfig
      • withHost

        public DruidApplicationConfig withHost​(String host)
        Configure the host for MySQL service used by druid metastore. This configuration is needed only if the metastore is "mysql".
        参数:
        host - The host on which the MySQL service runs.
        返回:
        DruidApplicationConfig
      • withPort

        public DruidApplicationConfig withPort​(int port)
        Configure the port for MySQL service used by druid metastore. This configuration is needed only if the metastore is "mysql".
        参数:
        port - The port on which the MySQL service listens.
        返回:
        DruidApplicationConfig
      • withDatabase

        public DruidApplicationConfig withDatabase​(String database)
        Configure the database name for the druid metastore. This configuration is needed only if the metastore is "mysql".
        参数:
        database - The database's name for druid metastore.
        返回:
        DruidApplicationConfig
      • withUserName

        public DruidApplicationConfig withUserName​(String username)
        Configure the username for accessing MySQL database. This configuration is needed only if the metastore is "mysql".
        参数:
        username - The username for accessing MySQL database.
        返回:
        DruidApplicationConfig
      • withPassword

        public DruidApplicationConfig withPassword​(String password)
        Configure the password for accessing MySQL database. This configuration is needed only if the metastore is "mysql".
        参数:
        password - The password for accessing MySQL database.
        返回:
        DruidApplicationConfig