Class InstanceClusterShard
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.redis.v20180412.models.InstanceClusterShard
-
public class InstanceClusterShard extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description InstanceClusterShard()InstanceClusterShard(InstanceClusterShard 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 LonggetConnected()Get 服务状态。 - 0:down。 - 1:on。LonggetKeys()Get Key数量。LonggetRole()Get 分片节点的角色。 - 0:主节点。 - 1:副本节点。StringgetRunid()Get 实例运行时节点 ID。StringgetShardId()Get 分片节点序号。StringgetShardName()Get 分片节点名称。StringgetSlots()Get Slot信息。LonggetStorage()Get 已使用容量。FloatgetStorageSlope()Get 容量倾斜率。voidsetConnected(Long Connected)Set 服务状态。 - 0:down。 - 1:on。voidsetKeys(Long Keys)Set Key数量。voidsetRole(Long Role)Set 分片节点的角色。 - 0:主节点。 - 1:副本节点。voidsetRunid(String Runid)Set 实例运行时节点 ID。voidsetShardId(String ShardId)Set 分片节点序号。voidsetShardName(String ShardName)Set 分片节点名称。voidsetSlots(String Slots)Set Slot信息。voidsetStorage(Long Storage)Set 已使用容量。voidsetStorageSlope(Float StorageSlope)Set 容量倾斜率。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
-
InstanceClusterShard
public InstanceClusterShard()
-
InstanceClusterShard
public InstanceClusterShard(InstanceClusterShard 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
-
getShardName
public String getShardName()
Get 分片节点名称。- Returns:
- ShardName 分片节点名称。
-
setShardName
public void setShardName(String ShardName)
Set 分片节点名称。- Parameters:
ShardName- 分片节点名称。
-
getShardId
public String getShardId()
Get 分片节点序号。- Returns:
- ShardId 分片节点序号。
-
setShardId
public void setShardId(String ShardId)
Set 分片节点序号。- Parameters:
ShardId- 分片节点序号。
-
getRole
public Long getRole()
Get 分片节点的角色。 - 0:主节点。 - 1:副本节点。- Returns:
- Role 分片节点的角色。 - 0:主节点。 - 1:副本节点。
-
setRole
public void setRole(Long Role)
Set 分片节点的角色。 - 0:主节点。 - 1:副本节点。- Parameters:
Role- 分片节点的角色。 - 0:主节点。 - 1:副本节点。
-
getKeys
public Long getKeys()
Get Key数量。- Returns:
- Keys Key数量。
-
setKeys
public void setKeys(Long Keys)
Set Key数量。- Parameters:
Keys- Key数量。
-
getSlots
public String getSlots()
Get Slot信息。- Returns:
- Slots Slot信息。
-
setSlots
public void setSlots(String Slots)
Set Slot信息。- Parameters:
Slots- Slot信息。
-
getStorage
public Long getStorage()
Get 已使用容量。- Returns:
- Storage 已使用容量。
-
setStorage
public void setStorage(Long Storage)
Set 已使用容量。- Parameters:
Storage- 已使用容量。
-
getStorageSlope
public Float getStorageSlope()
Get 容量倾斜率。- Returns:
- StorageSlope 容量倾斜率。
-
setStorageSlope
public void setStorageSlope(Float StorageSlope)
Set 容量倾斜率。- Parameters:
StorageSlope- 容量倾斜率。
-
getRunid
public String getRunid()
Get 实例运行时节点 ID。- Returns:
- Runid 实例运行时节点 ID。
-
setRunid
public void setRunid(String Runid)
Set 实例运行时节点 ID。- Parameters:
Runid- 实例运行时节点 ID。
-
getConnected
public Long getConnected()
Get 服务状态。 - 0:down。 - 1:on。- Returns:
- Connected 服务状态。 - 0:down。 - 1:on。
-
setConnected
public void setConnected(Long Connected)
Set 服务状态。 - 0:down。 - 1:on。- Parameters:
Connected- 服务状态。 - 0:down。 - 1:on。
-
-