Package cn.ucloud.udb.client
Class UDBClient
- java.lang.Object
-
- cn.ucloud.common.client.DefaultClient
-
- cn.ucloud.udb.client.UDBClient
-
- All Implemented Interfaces:
Client,UDBClientInterface,Closeable,AutoCloseable
public class UDBClient extends DefaultClient implements UDBClientInterface
This client is used to call actions of **UDB** service
-
-
Constructor Summary
Constructors Constructor Description UDBClient(Config config, Credential credential)
-
Method Summary
-
Methods inherited from class cn.ucloud.common.client.DefaultClient
close, getConfig, getCredential, getTransport, invoke, setConfig, setCredential, setTransport, useMiddleware
-
-
-
-
Constructor Detail
-
UDBClient
public UDBClient(Config config, Credential credential)
-
-
Method Detail
-
backupUDBInstance
public BackupUDBInstanceResponse backupUDBInstance(BackupUDBInstanceRequest request) throws UCloudException
BackupUDBInstance - 备份云数据库- Specified by:
backupUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
backupUDBInstanceBinlog
public BackupUDBInstanceBinlogResponse backupUDBInstanceBinlog(BackupUDBInstanceBinlogRequest request) throws UCloudException
BackupUDBInstanceBinlog - 备份UDB指定时间段的binlog列表- Specified by:
backupUDBInstanceBinlogin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
backupUDBInstanceErrorLog
public BackupUDBInstanceErrorLogResponse backupUDBInstanceErrorLog(BackupUDBInstanceErrorLogRequest request) throws UCloudException
BackupUDBInstanceErrorLog - 备份UDB指定时间段的errorlog- Specified by:
backupUDBInstanceErrorLogin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
backupUDBInstanceSlowLog
public BackupUDBInstanceSlowLogResponse backupUDBInstanceSlowLog(BackupUDBInstanceSlowLogRequest request) throws UCloudException
BackupUDBInstanceSlowLog - 备份UDB指定时间段的slowlog分析结果- Specified by:
backupUDBInstanceSlowLogin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
changeUDBParamGroup
public ChangeUDBParamGroupResponse changeUDBParamGroup(ChangeUDBParamGroupRequest request) throws UCloudException
ChangeUDBParamGroup - 修改配置文件- Specified by:
changeUDBParamGroupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
checkRecoverUDBInstance
public CheckRecoverUDBInstanceResponse checkRecoverUDBInstance(CheckRecoverUDBInstanceRequest request) throws UCloudException
CheckRecoverUDBInstance - 核查db是否可以使用回档功能- Specified by:
checkRecoverUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
checkUDBInstanceToHAAllowance
public CheckUDBInstanceToHAAllowanceResponse checkUDBInstanceToHAAllowance(CheckUDBInstanceToHAAllowanceRequest request) throws UCloudException
CheckUDBInstanceToHAAllowance - 核查db是否可以升级为高可用- Specified by:
checkUDBInstanceToHAAllowancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
clearUDBLog
public ClearUDBLogResponse clearUDBLog(ClearUDBLogRequest request) throws UCloudException
ClearUDBLog - 清除日志- Specified by:
clearUDBLogin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createMongoDBReplicaSet
public CreateMongoDBReplicaSetResponse createMongoDBReplicaSet(CreateMongoDBReplicaSetRequest request) throws UCloudException
CreateMongoDBReplicaSet - 创建DB副本集- Specified by:
createMongoDBReplicaSetin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUDBInstance
public CreateUDBInstanceResponse createUDBInstance(CreateUDBInstanceRequest request) throws UCloudException
CreateUDBInstance - 创建数据库- Specified by:
createUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUDBInstanceByRecovery
public CreateUDBInstanceByRecoveryResponse createUDBInstanceByRecovery(CreateUDBInstanceByRecoveryRequest request) throws UCloudException
CreateUDBInstanceByRecovery - 将新建的db恢复到指定db某个指定时间点- Specified by:
createUDBInstanceByRecoveryin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUDBParamGroup
public CreateUDBParamGroupResponse createUDBParamGroup(CreateUDBParamGroupRequest request) throws UCloudException
CreateUDBParamGroup - 创建配置文件- Specified by:
createUDBParamGroupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUDBReplicationInstance
public CreateUDBReplicationInstanceResponse createUDBReplicationInstance(CreateUDBReplicationInstanceRequest request) throws UCloudException
CreateUDBReplicationInstance - 创建副本- Specified by:
createUDBReplicationInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUDBRouteInstance
public CreateUDBRouteInstanceResponse createUDBRouteInstance(CreateUDBRouteInstanceRequest request) throws UCloudException
CreateUDBRouteInstance - 创建mongos实例- Specified by:
createUDBRouteInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUDBSlave
public CreateUDBSlaveResponse createUDBSlave(CreateUDBSlaveRequest request) throws UCloudException
CreateUDBSlave - 创建从库- Specified by:
createUDBSlavein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteUDBInstance
public DeleteUDBInstanceResponse deleteUDBInstance(DeleteUDBInstanceRequest request) throws UCloudException
DeleteUDBInstance - 删除云数据库- Specified by:
deleteUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteUDBLogPackage
public DeleteUDBLogPackageResponse deleteUDBLogPackage(DeleteUDBLogPackageRequest request) throws UCloudException
DeleteUDBLogPackage - 删除UDB日志包- Specified by:
deleteUDBLogPackagein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteUDBParamGroup
public DeleteUDBParamGroupResponse deleteUDBParamGroup(DeleteUDBParamGroupRequest request) throws UCloudException
DeleteUDBParamGroup - 删除配置- Specified by:
deleteUDBParamGroupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBBackup
public DescribeUDBBackupResponse describeUDBBackup(DescribeUDBBackupRequest request) throws UCloudException
DescribeUDBBackup - 获取备份列表- Specified by:
describeUDBBackupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBBackupBlacklist
public DescribeUDBBackupBlacklistResponse describeUDBBackupBlacklist(DescribeUDBBackupBlacklistRequest request) throws UCloudException
DescribeUDBBackupBlacklist - 获取备份黑名单- Specified by:
describeUDBBackupBlacklistin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBBinlogBackupURL
public DescribeUDBBinlogBackupURLResponse describeUDBBinlogBackupURL(DescribeUDBBinlogBackupURLRequest request) throws UCloudException
DescribeUDBBinlogBackupURL - (新)获取UDB的日志备份地址- Specified by:
describeUDBBinlogBackupURLin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstance
public DescribeUDBInstanceResponse describeUDBInstance(DescribeUDBInstanceRequest request) throws UCloudException
DescribeUDBInstance - 获取云数据库信息- Specified by:
describeUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstanceBackupState
public DescribeUDBInstanceBackupStateResponse describeUDBInstanceBackupState(DescribeUDBInstanceBackupStateRequest request) throws UCloudException
DescribeUDBInstanceBackupState - 获取实例备份状态- Specified by:
describeUDBInstanceBackupStatein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstanceBackupURL
public DescribeUDBInstanceBackupURLResponse describeUDBInstanceBackupURL(DescribeUDBInstanceBackupURLRequest request) throws UCloudException
DescribeUDBInstanceBackupURL - 获取UDB备份下载地址- Specified by:
describeUDBInstanceBackupURLin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstanceBinlog
public DescribeUDBInstanceBinlogResponse describeUDBInstanceBinlog(DescribeUDBInstanceBinlogRequest request) throws UCloudException
DescribeUDBInstanceBinlog - 获取UDBbinlog列表- Specified by:
describeUDBInstanceBinlogin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstanceBinlogBackupState
public DescribeUDBInstanceBinlogBackupStateResponse describeUDBInstanceBinlogBackupState(DescribeUDBInstanceBinlogBackupStateRequest request) throws UCloudException
DescribeUDBInstanceBinlogBackupState - 获取udb实例备份状态- Specified by:
describeUDBInstanceBinlogBackupStatein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstanceLog
public DescribeUDBInstanceLogResponse describeUDBInstanceLog(DescribeUDBInstanceLogRequest request) throws UCloudException
DescribeUDBInstanceLog - 获取UDB错误日志或慢查询日志- Specified by:
describeUDBInstanceLogin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstancePrice
public DescribeUDBInstancePriceResponse describeUDBInstancePrice(DescribeUDBInstancePriceRequest request) throws UCloudException
DescribeUDBInstancePrice - 获取云数据库价格- Specified by:
describeUDBInstancePricein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstanceState
public DescribeUDBInstanceStateResponse describeUDBInstanceState(DescribeUDBInstanceStateRequest request) throws UCloudException
DescribeUDBInstanceState - 获取云数据库状态- Specified by:
describeUDBInstanceStatein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBInstanceUpgradePrice
public DescribeUDBInstanceUpgradePriceResponse describeUDBInstanceUpgradePrice(DescribeUDBInstanceUpgradePriceRequest request) throws UCloudException
DescribeUDBInstanceUpgradePrice - 获取UDB实例升降级价格信息- Specified by:
describeUDBInstanceUpgradePricein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBLogBackupURL
public DescribeUDBLogBackupURLResponse describeUDBLogBackupURL(DescribeUDBLogBackupURLRequest request) throws UCloudException
DescribeUDBLogBackupURL - 获取UDB的日志备份地址- Specified by:
describeUDBLogBackupURLin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBLogPackage
public DescribeUDBLogPackageResponse describeUDBLogPackage(DescribeUDBLogPackageRequest request) throws UCloudException
DescribeUDBLogPackage - 列表UDB实例日志备份信息- Specified by:
describeUDBLogPackagein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBParamGroup
public DescribeUDBParamGroupResponse describeUDBParamGroup(DescribeUDBParamGroupRequest request) throws UCloudException
DescribeUDBParamGroup - 获取参数信息- Specified by:
describeUDBParamGroupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBSplittingInfo
public DescribeUDBSplittingInfoResponse describeUDBSplittingInfo(DescribeUDBSplittingInfoRequest request) throws UCloudException
DescribeUDBSplittingInfo - 描述读写分离功能- Specified by:
describeUDBSplittingInfoin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUDBType
public DescribeUDBTypeResponse describeUDBType(DescribeUDBTypeRequest request) throws UCloudException
DescribeUDBType - 获取云数据库支持类型- Specified by:
describeUDBTypein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
disableUDBRWSplitting
public DisableUDBRWSplittingResponse disableUDBRWSplitting(DisableUDBRWSplittingRequest request) throws UCloudException
DisableUDBRWSplitting - 关闭读写分离功能- Specified by:
disableUDBRWSplittingin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
editUDBBackupBlacklist
public EditUDBBackupBlacklistResponse editUDBBackupBlacklist(EditUDBBackupBlacklistRequest request) throws UCloudException
EditUDBBackupBlacklist - 编辑备份黑名单- Specified by:
editUDBBackupBlacklistin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
enableUDBRWSplitting
public EnableUDBRWSplittingResponse enableUDBRWSplitting(EnableUDBRWSplittingRequest request) throws UCloudException
EnableUDBRWSplitting - 启用读写分离功能- Specified by:
enableUDBRWSplittingin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
extractUDBParamGroup
public ExtractUDBParamGroupResponse extractUDBParamGroup(ExtractUDBParamGroupRequest request) throws UCloudException
ExtractUDBParamGroup - 获取配置文件内容- Specified by:
extractUDBParamGroupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
fetchUDBInstanceEarliestRecoverTime
public FetchUDBInstanceEarliestRecoverTimeResponse fetchUDBInstanceEarliestRecoverTime(FetchUDBInstanceEarliestRecoverTimeRequest request) throws UCloudException
FetchUDBInstanceEarliestRecoverTime - 获取最早可回档时间- Specified by:
fetchUDBInstanceEarliestRecoverTimein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUDBClientConnNum
public GetUDBClientConnNumResponse getUDBClientConnNum(GetUDBClientConnNumRequest request) throws UCloudException
GetUDBClientConnNum - 获取连接实例客户端Ip和连接数- Specified by:
getUDBClientConnNumin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyUDBInstanceName
public ModifyUDBInstanceNameResponse modifyUDBInstanceName(ModifyUDBInstanceNameRequest request) throws UCloudException
ModifyUDBInstanceName - 修改云数据库名称- Specified by:
modifyUDBInstanceNamein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyUDBInstancePassword
public ModifyUDBInstancePasswordResponse modifyUDBInstancePassword(ModifyUDBInstancePasswordRequest request) throws UCloudException
ModifyUDBInstancePassword - 修改DB实例的管理员密码- Specified by:
modifyUDBInstancePasswordin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
modifyUDBInstanceRemarkName
public ModifyUDBInstanceRemarkNameResponse modifyUDBInstanceRemarkName(ModifyUDBInstanceRemarkNameRequest request) throws UCloudException
ModifyUDBInstanceRemarkName - 修改云数据库备注- Specified by:
modifyUDBInstanceRemarkNamein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
promoteUDBInstanceToHA
public PromoteUDBInstanceToHAResponse promoteUDBInstanceToHA(PromoteUDBInstanceToHARequest request) throws UCloudException
PromoteUDBInstanceToHA - 普通db升级为高可用- Specified by:
promoteUDBInstanceToHAin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
promoteUDBSlave
public PromoteUDBSlaveResponse promoteUDBSlave(PromoteUDBSlaveRequest request) throws UCloudException
PromoteUDBSlave - 提升从库- Specified by:
promoteUDBSlavein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
resizeUDBInstance
public ResizeUDBInstanceResponse resizeUDBInstance(ResizeUDBInstanceRequest request) throws UCloudException
ResizeUDBInstance - 修改UDB实例的配置- Specified by:
resizeUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
restartRWSplitting
public RestartRWSplittingResponse restartRWSplitting(RestartRWSplittingRequest request) throws UCloudException
RestartRWSplitting - 读写分离中间件重启- Specified by:
restartRWSplittingin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
restartUDBInstance
public RestartUDBInstanceResponse restartUDBInstance(RestartUDBInstanceRequest request) throws UCloudException
RestartUDBInstance - 重启云数据库- Specified by:
restartUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
rollbackUDBInstance
public RollbackUDBInstanceResponse rollbackUDBInstance(RollbackUDBInstanceRequest request) throws UCloudException
RollbackUDBInstance - 回档指定库表- Specified by:
rollbackUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
setUDBRWSplitting
public SetUDBRWSplittingResponse setUDBRWSplitting(SetUDBRWSplittingRequest request) throws UCloudException
SetUDBRWSplitting - 设置读写分离- Specified by:
setUDBRWSplittingin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
startUDBInstance
public StartUDBInstanceResponse startUDBInstance(StartUDBInstanceRequest request) throws UCloudException
StartUDBInstance - 启动云数据库- Specified by:
startUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
stopUDBInstance
public StopUDBInstanceResponse stopUDBInstance(StopUDBInstanceRequest request) throws UCloudException
StopUDBInstance - 关闭云数据库- Specified by:
stopUDBInstancein interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
switchUDBHAToSentinel
public SwitchUDBHAToSentinelResponse switchUDBHAToSentinel(SwitchUDBHAToSentinelRequest request) throws UCloudException
SwitchUDBHAToSentinel - UDB高可用实例升级为Sentinel版本(不带HAProxy)升级耗时5-10秒- Specified by:
switchUDBHAToSentinelin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
switchUDBInstanceToHA
public SwitchUDBInstanceToHAResponse switchUDBInstanceToHA(SwitchUDBInstanceToHARequest request) throws UCloudException
SwitchUDBInstanceToHA - 普通UDB切换为高可用- Specified by:
switchUDBInstanceToHAin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
updateUDBInstanceBackupStrategy
public UpdateUDBInstanceBackupStrategyResponse updateUDBInstanceBackupStrategy(UpdateUDBInstanceBackupStrategyRequest request) throws UCloudException
UpdateUDBInstanceBackupStrategy - 修改UDB自动备份策略- Specified by:
updateUDBInstanceBackupStrategyin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
updateUDBInstanceSlaveBackupSwitch
public UpdateUDBInstanceSlaveBackupSwitchResponse updateUDBInstanceSlaveBackupSwitch(UpdateUDBInstanceSlaveBackupSwitchRequest request) throws UCloudException
UpdateUDBInstanceSlaveBackupSwitch - 开启或者关闭UDB从库备份- Specified by:
updateUDBInstanceSlaveBackupSwitchin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
updateUDBParamGroup
public UpdateUDBParamGroupResponse updateUDBParamGroup(UpdateUDBParamGroupRequest request) throws UCloudException
UpdateUDBParamGroup - 更新配置- Specified by:
updateUDBParamGroupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
upgradeUDBInstanceToHA
public UpgradeUDBInstanceToHAResponse upgradeUDBInstanceToHA(UpgradeUDBInstanceToHARequest request) throws UCloudException
UpgradeUDBInstanceToHA - 快杰普通db升级为高可用- Specified by:
upgradeUDBInstanceToHAin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
upgradeUDBVersion
public UpgradeUDBVersionResponse upgradeUDBVersion(UpgradeUDBVersionRequest request) throws UCloudException
UpgradeUDBVersion - 升级db实例版本- Specified by:
upgradeUDBVersionin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
uploadUDBParamGroup
public UploadUDBParamGroupResponse uploadUDBParamGroup(UploadUDBParamGroupRequest request) throws UCloudException
UploadUDBParamGroup - 导入配置- Specified by:
uploadUDBParamGroupin interfaceUDBClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
-