类 HBaseApplicationConfig


  • public class HBaseApplicationConfig
    extends ApplicationConfig
    Represent an HBase application.

    An HBase application can be configured with properties about backup and restore.

    • 构造器详细资料

      • HBaseApplicationConfig

        public HBaseApplicationConfig()
    • 方法详细资料

      • withVersion

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

        image type | image version | hbase version supported hadoop | 0.1.0 | 0.98.0 hadoop | 0.1.0 | 0.98.0

        参数:
        version - The version of HBase.
        返回:
        HBaseApplicationConfig
      • withBackupEnabled

        public HBaseApplicationConfig withBackupEnabled​(boolean backupEnabled)
        Configure the switch of HBase backup. If backup is enabled, then the properties of backup-location, backup-internal and backup start time should be set.
        参数:
        backupEnabled - The switch of backup. Turn it on by setting true.
        返回:
        HBaseApplicationConfig
      • withBackupLocation

        public HBaseApplicationConfig withBackupLocation​(String backupLocation)
        Configure the BOS path for HBase backup. This property must be set if the backupEnabled is set true.
        参数:
        backupLocation - The BOS path for backup.
        返回:
        HBaseApplicationConfig
      • withBackupIntervalInMinutes

        public HBaseApplicationConfig withBackupIntervalInMinutes​(int minutes)
        Configure the interval time for backup. This property must be set if the backupEnabled is set true.
        参数:
        minutes - The number of minutes for backup interval time.
        返回:
        HBaseApplicationConfig
      • withBackupStartDatetime

        public HBaseApplicationConfig withBackupStartDatetime​(String startDatetime)
        Configure the start dateTime for backup. This property must be set if the backupEnabled is set true.
        参数:
        startDatetime - The start date time for HBase backup.
        返回:
        HBaseApplicationConfig
      • withRestoreEnabled

        public HBaseApplicationConfig withRestoreEnabled​(boolean restoreEnabled)
        Configure the switch of HBase restore. If HBase restore is enabled, then the HBase of the newly cluster will restore from the configured restore location. If restore is not enabled, then the HBase will be a purely new one.
        参数:
        restoreEnabled - The switch of restore. Turn it on by setting true.
        返回:
        HBaseApplicationConfig
      • withRestoreLocation

        public HBaseApplicationConfig withRestoreLocation​(String restoreLocation)
        Configure the BOS path for HBase restore. This property must be set if the restoreEnabled is set true.
        参数:
        restoreLocation - The BOS path for restore.
        返回:
        HBaseApplicationConfig
      • withRestoreVersion

        public HBaseApplicationConfig withRestoreVersion​(String restoreVersion)
        Configure the version of backup files for HBase restore. This property must be set if the restoreEnabled is set true.
        参数:
        restoreVersion - The version of HBase backup files.
        返回:
        HBaseApplicationConfig