Class RedisNode
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.redis.v20180412.models.RedisNode
-
public class RedisNode extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetKeys()Get Redis 节点上 Key 的个数。StringgetNodeId()Get 节点的序列 ID。StringgetRole()Get 节点角色。StringgetSlot()Get Redis 节点 Slot 分布范围。例如:0-5460。StringgetStatus()Get 节点的状态。voidsetKeys(Long Keys)Set Redis 节点上 Key 的个数。voidsetNodeId(String NodeId)Set 节点的序列 ID。voidsetRole(String Role)Set 节点角色。voidsetSlot(String Slot)Set Redis 节点 Slot 分布范围。例如:0-5460。voidsetStatus(String Status)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
-
RedisNode
public RedisNode()
-
RedisNode
public RedisNode(RedisNode 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
-
getKeys
public Long getKeys()
Get Redis 节点上 Key 的个数。- Returns:
- Keys Redis 节点上 Key 的个数。
-
setKeys
public void setKeys(Long Keys)
Set Redis 节点上 Key 的个数。- Parameters:
Keys- Redis 节点上 Key 的个数。
-
getSlot
public String getSlot()
Get Redis 节点 Slot 分布范围。例如:0-5460。- Returns:
- Slot Redis 节点 Slot 分布范围。例如:0-5460。
-
setSlot
public void setSlot(String Slot)
Set Redis 节点 Slot 分布范围。例如:0-5460。- Parameters:
Slot- Redis 节点 Slot 分布范围。例如:0-5460。
-
getNodeId
public String getNodeId()
Get 节点的序列 ID。- Returns:
- NodeId 节点的序列 ID。
-
setNodeId
public void setNodeId(String NodeId)
Set 节点的序列 ID。- Parameters:
NodeId- 节点的序列 ID。
-
getStatus
public String getStatus()
Get 节点的状态。- Returns:
- Status 节点的状态。
-
setStatus
public void setStatus(String Status)
Set 节点的状态。- Parameters:
Status- 节点的状态。
-
getRole
public String getRole()
Get 节点角色。- Returns:
- Role 节点角色。
-
setRole
public void setRole(String Role)
Set 节点角色。- Parameters:
Role- 节点角色。
-
-