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 Long
getKeys()
Get Redis 节点上 Key 的个数。String
getNodeId()
Get 节点的序列 ID。String
getRole()
Get 节点角色。String
getSlot()
Get Redis 节点 Slot 分布范围。例如:0-5460。String
getStatus()
Get 节点的状态。void
setKeys(Long Keys)
Set Redis 节点上 Key 的个数。void
setNodeId(String NodeId)
Set 节点的序列 ID。void
setRole(String Role)
Set 节点角色。void
setSlot(String Slot)
Set Redis 节点 Slot 分布范围。例如:0-5460。void
setStatus(String Status)
Set 节点的状态。void
toMap(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
- 节点角色。
-
-