类 DruidApplicationConfig
- java.lang.Object
-
- com.baidubce.services.bmr.model.ApplicationConfig
-
- com.baidubce.services.bmr.model.DruidApplicationConfig
-
public class DruidApplicationConfig extends ApplicationConfig
-
-
构造器概要
构造器 构造器 说明 DruidApplicationConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 DruidApplicationConfigwithDatabase(String database)Configure the database name for the druid metastore.DruidApplicationConfigwithHost(String host)Configure the host for MySQL service used by druid metastore.DruidApplicationConfigwithMetastore(String metastore)Configure the metastore of druid Server。 By default, the inner metastore is used.DruidApplicationConfigwithPassword(String password)Configure the password for accessing MySQL database.DruidApplicationConfigwithPort(int port)Configure the port for MySQL service used by druid metastore.DruidApplicationConfigwithUserName(String username)Configure the username for accessing MySQL database.DruidApplicationConfigwithVersion(String version)Configure the version of druid.-
从类继承的方法 com.baidubce.services.bmr.model.ApplicationConfig
addProperty, getName, getProperties, getVersion, setName, setProperties, setVersion
-
-
-
-
方法详细资料
-
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
-
-