public class NodeProperty extends AbstractModel
header, skipSign| Constructor and Description |
|---|
NodeProperty() |
NodeProperty(NodeProperty 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 |
|---|---|
String |
getAddress()
Get Node access address.
|
Boolean |
getHidden()
Get Whether the node is a hidden node.
|
String |
getNodeName()
Get Node name.
|
Long |
getPriority()
Get Node priority.
|
String |
getReplicateSetId()
Get Replica set ID.
|
String |
getRole()
Get Node role.
|
Long |
getSlaveDelay()
Get Delay time of primary-secondary synchronization, in seconds.
|
String |
getStatus()
Get Node status.
|
NodeTag[] |
getTags()
Get Node tag.
|
Long |
getVotes()
Get Node voting right.
|
String |
getWanServiceAddress()
Get Public network access address (IP address or domain name) of the node.
|
String |
getZone()
Get Node AZ.
|
void |
setAddress(String Address)
Set Node access address.
|
void |
setHidden(Boolean Hidden)
Set Whether the node is a hidden node.
|
void |
setNodeName(String NodeName)
Set Node name.
|
void |
setPriority(Long Priority)
Set Node priority.
|
void |
setReplicateSetId(String ReplicateSetId)
Set Replica set ID.
|
void |
setRole(String Role)
Set Node role.
|
void |
setSlaveDelay(Long SlaveDelay)
Set Delay time of primary-secondary synchronization, in seconds.
|
void |
setStatus(String Status)
Set Node status.
|
void |
setTags(NodeTag[] Tags)
Set Node tag.
|
void |
setVotes(Long Votes)
Set Node voting right.
|
void |
setWanServiceAddress(String WanServiceAddress)
Set Public network access address (IP address or domain name) of the node.
|
void |
setZone(String Zone)
Set Node AZ.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic NodeProperty()
public NodeProperty(NodeProperty source)
public String getZone()
public void setZone(String Zone)
Zone - Node AZ.public String getNodeName()
public void setNodeName(String NodeName)
NodeName - Node name.public String getAddress()
public void setAddress(String Address)
Address - Node access address.public String getWanServiceAddress()
public void setWanServiceAddress(String WanServiceAddress)
WanServiceAddress - Public network access address (IP address or domain name) of the node. The example value is an IP address.public String getRole()
public void setRole(String Role)
Role - Node role.
- PRIMARY: primary node.
- SECONDARY: secondary node.
- READONLY: read-only node.
- ARBITER: arbitration node.public Boolean getHidden()
public void setHidden(Boolean Hidden)
Hidden - Whether the node is a hidden node.
- true: a hidden node.
- false: not a hidden node.public String getStatus()
public void setStatus(String Status)
Status - Node status.
- NORMAL: running normally.
- STARTUP: starting.
- STARTUP2: starting and processing the intermediate data.
- RECOVERING: recovering and not available.
- DOWN: offline.
- UNKNOWN: unknown status.
- ROLLBACK: rolling back.
- REMOVED: removed.public Long getSlaveDelay()
public void setSlaveDelay(Long SlaveDelay)
SlaveDelay - Delay time of primary-secondary synchronization, in seconds.public Long getPriority()
public void setPriority(Long Priority)
Priority - Node priority. Value range: [0, 100]. A larger value indicates a higher priority.public Long getVotes()
public void setVotes(Long Votes)
Votes - Node voting right.
- 1: The node has the right to vote.
- 0: The node does not have the right to vote.public NodeTag[] getTags()
public void setTags(NodeTag[] Tags)
Tags - Node tag.
Note: This field may return null, indicating that no valid values can be obtained.public String getReplicateSetId()
public void setReplicateSetId(String ReplicateSetId)
ReplicateSetId - Replica set ID.Copyright © 2025. All rights reserved.