Class KillMySqlThreadsRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.dbbrain.v20210527.models.KillMySqlThreadsRequest
-
public class KillMySqlThreadsRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description KillMySqlThreadsRequest()KillMySqlThreadsRequest(KillMySqlThreadsRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInstanceId()Get 实例ID。StringgetProduct()Get 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。BooleangetRecordHistory()Get 默认是ture, 记录下kill的记录,为了加快kill,可设置为false。StringgetSqlExecId()Get 执行ID,此参数用于Commit阶段。StringgetStage()Get kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。Long[]getThreads()Get 需要kill的sql会话ID列表,此参数用于Prepare阶段。voidsetInstanceId(String InstanceId)Set 实例ID。voidsetProduct(String Product)Set 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。voidsetRecordHistory(Boolean RecordHistory)Set 默认是ture, 记录下kill的记录,为了加快kill,可设置为false。voidsetSqlExecId(String SqlExecId)Set 执行ID,此参数用于Commit阶段。voidsetStage(String Stage)Set kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。voidsetThreads(Long[] Threads)Set 需要kill的sql会话ID列表,此参数用于Prepare阶段。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
KillMySqlThreadsRequest
public KillMySqlThreadsRequest()
-
KillMySqlThreadsRequest
public KillMySqlThreadsRequest(KillMySqlThreadsRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getInstanceId
public String getInstanceId()
Get 实例ID。- Returns:
- InstanceId 实例ID。
-
setInstanceId
public void setInstanceId(String InstanceId)
Set 实例ID。- Parameters:
InstanceId- 实例ID。
-
getStage
public String getStage()
Get kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。- Returns:
- Stage kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。
-
setStage
public void setStage(String Stage)
Set kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。- Parameters:
Stage- kill会话任务的阶段,取值包括:"Prepare"-准备阶段,"Commit"-提交阶段。
-
getThreads
public Long[] getThreads()
Get 需要kill的sql会话ID列表,此参数用于Prepare阶段。- Returns:
- Threads 需要kill的sql会话ID列表,此参数用于Prepare阶段。
-
setThreads
public void setThreads(Long[] Threads)
Set 需要kill的sql会话ID列表,此参数用于Prepare阶段。- Parameters:
Threads- 需要kill的sql会话ID列表,此参数用于Prepare阶段。
-
getSqlExecId
public String getSqlExecId()
Get 执行ID,此参数用于Commit阶段。- Returns:
- SqlExecId 执行ID,此参数用于Commit阶段。
-
setSqlExecId
public void setSqlExecId(String SqlExecId)
Set 执行ID,此参数用于Commit阶段。- Parameters:
SqlExecId- 执行ID,此参数用于Commit阶段。
-
getProduct
public String getProduct()
Get 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。- Returns:
- Product 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
-
setProduct
public void setProduct(String Product)
Set 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。- Parameters:
Product- 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
-
getRecordHistory
public Boolean getRecordHistory()
Get 默认是ture, 记录下kill的记录,为了加快kill,可设置为false。- Returns:
- RecordHistory 默认是ture, 记录下kill的记录,为了加快kill,可设置为false。
-
setRecordHistory
public void setRecordHistory(Boolean RecordHistory)
Set 默认是ture, 记录下kill的记录,为了加快kill,可设置为false。- Parameters:
RecordHistory- 默认是ture, 记录下kill的记录,为了加快kill,可设置为false。
-
-