public class RedisNodeInfo extends AbstractModel
Constructor and Description |
---|
RedisNodeInfo() |
RedisNodeInfo(RedisNodeInfo 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.
|
Modifier and Type | Method and Description |
---|---|
Long |
getNodeId()
Get ID of the master or replica node, which is not required upon creation of the instance
|
Long |
getNodeType()
Get Node type.
|
Long |
getZoneId()
Get ID of the availability zone of the master or replica node
|
void |
setNodeId(Long NodeId)
Set ID of the master or replica node, which is not required upon creation of the instance
|
void |
setNodeType(Long NodeType)
Set Node type.
|
void |
setZoneId(Long ZoneId)
Set ID of the availability zone of the master or replica node
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public RedisNodeInfo()
public RedisNodeInfo(RedisNodeInfo source)
public Long getNodeType()
public void setNodeType(Long NodeType)
NodeType
- Node type. Valid values: `0` (master node), `1` (replica node)public Long getZoneId()
public void setZoneId(Long ZoneId)
ZoneId
- ID of the availability zone of the master or replica nodepublic Long getNodeId()
public void setNodeId(Long NodeId)
NodeId
- ID of the master or replica node, which is not required upon creation of the instanceCopyright © 2021. All rights reserved.