public static final class Info.Replication extends Object implements Serializable
限定符和类型 | 类和说明 |
---|---|
static class |
Info.Replication.Key |
static class |
Info.Replication.MasterLinkStatus |
static class |
Info.Replication.ReplBacklog |
static class |
Info.Replication.Slave |
构造器和说明 |
---|
Replication(Properties properties) |
限定符和类型 | 方法和说明 |
---|---|
Integer |
getConnectedSlaves()
获取已连接的从服务器数量
|
RedisNode |
getMaster()
获取 Master 节点
|
Integer |
getMasterLastIoSecondsAgo()
获取距离最近一次与主服务器进行通信已经过去了多少秒钟
|
Info.Replication.MasterLinkStatus |
getMasterLinkStatus()
获取复制连接当前的状态,up 表示连接正常,down 表示连接断开
|
String |
getMasterReplId()
获取服务器的复制 ID
|
String |
getMasterReplId2()
获取第二服务器复制 ID
|
Integer |
getMasterReplOffset()
获取当前 master 记录的复制偏移量
|
Boolean |
getMasterSyncInProgress()
获取主服务器是否正在与这个从服务器进行同步
|
Info.Replication.ReplBacklog |
getReplBackLog() |
Integer |
getReplBackLogActive() |
Integer |
getReplBackLogByteOffset() |
Integer |
getReplBackLogHistLen() |
Integer |
getReplBackLogSize() |
Role |
getRole()
获取 Redis 服务器角色
|
Integer |
getSecondReplOffset()
获取第二服务器复制偏移量
|
List<RedisNode> |
getSlave()
获取 Slave 节点
|
Integer |
getSlavePriority() |
Boolean |
getSlaveReadOnly()
获取从节点是否为只读
|
Integer |
getSlaveReplOffset() |
Boolean |
isMasterSyncInProgress()
获取主服务器是否正在与这个从服务器进行同步
|
String |
toPrettyString() |
String |
toString() |
public Replication(Properties properties)
public Integer getConnectedSlaves()
public RedisNode getMaster()
public Integer getMasterLastIoSecondsAgo()
public Info.Replication.MasterLinkStatus getMasterLinkStatus()
public Boolean isMasterSyncInProgress()
public Boolean getMasterSyncInProgress()
public Integer getMasterReplOffset()
public String getMasterReplId()
public String getMasterReplId2()
public Info.Replication.ReplBacklog getReplBackLog()
public Role getRole()
public Integer getSecondReplOffset()
public Integer getSlaveReplOffset()
public Integer getSlavePriority()
public Boolean getSlaveReadOnly()
public Integer getReplBackLogActive()
public Integer getReplBackLogSize()
public Integer getReplBackLogByteOffset()
public Integer getReplBackLogHistLen()
public String toPrettyString()
Copyright © 2022 buession.com Inc.. All rights reserved.