public class InstanceClusterShard extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Long |
getConnected()
Get Service status
- `0`: Down.
|
Long |
getKeys()
Get Number of keys
|
Long |
getRole()
Get The role of a shard node
- `0`: Master node.
|
String |
getRunid()
Get This field is recommended to use the RunId instead due to spelling inconsistency.
|
String |
getRunId()
Get The node ID during instance runtime.
|
String |
getShardId()
Get The serial number of a shard node
|
String |
getShardName()
Get The name of a shard node
|
String |
getSlots()
Get Slot information
|
Long |
getStorage()
Get Used Capacity
|
Float |
getStorageSlope()
Get Capacity slope
|
void |
setConnected(Long Connected)
Set Service status
- `0`: Down.
|
void |
setKeys(Long Keys)
Set Number of keys
|
void |
setRole(Long Role)
Set The role of a shard node
- `0`: Master node.
|
void |
setRunid(String Runid)
Set This field is recommended to use the RunId instead due to spelling inconsistency.
|
void |
setRunId(String RunId)
Set The node ID during instance runtime.
|
void |
setShardId(String ShardId)
Set The serial number of a shard node
|
void |
setShardName(String ShardName)
Set The name of a shard node
|
void |
setSlots(String Slots)
Set Slot information
|
void |
setStorage(Long Storage)
Set Used Capacity
|
void |
setStorageSlope(Float StorageSlope)
Set Capacity slope
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public InstanceClusterShard()
public InstanceClusterShard(InstanceClusterShard source)
public String getShardName()
public void setShardName(String ShardName)
ShardName
- The name of a shard nodepublic String getShardId()
public void setShardId(String ShardId)
ShardId
- The serial number of a shard nodepublic Long getRole()
public void setRole(Long Role)
Role
- The role of a shard node
- `0`: Master node.
- `1`: Replica node.public Long getKeys()
public void setKeys(Long Keys)
Keys
- Number of keyspublic String getSlots()
public void setSlots(String Slots)
Slots
- Slot informationpublic Long getStorage()
public void setStorage(Long Storage)
Storage
- Used Capacitypublic Float getStorageSlope()
public void setStorageSlope(Float StorageSlope)
StorageSlope
- Capacity slopepublic String getRunid()
public void setRunid(String Runid)
Runid
- This field is recommended to use the RunId instead due to spelling inconsistency.
Meaning: The node ID during instance runtime.public String getRunId()
public void setRunId(String RunId)
RunId
- The node ID during instance runtime.public Long getConnected()
public void setConnected(Long Connected)
Connected
- Service status
- `0`: Down.
- `1`: On.Copyright © 2024. All rights reserved.