public class InstanceClusterShard extends AbstractModel
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 Instance runtime node ID
|
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 Instance runtime node ID
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, 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
- Instance runtime node IDpublic Long getConnected()
public void setConnected(Long Connected)
Connected
- Service status
- `0`: Down.
- `1`: On.Copyright © 2023. All rights reserved.