public class RedisServer extends RedisNode
限定符和类型 | 类和说明 |
---|---|
static class |
RedisServer.Key |
DEFAULT_DATABASE, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_SENTINEL_PORT
构造器和说明 |
---|
RedisServer(String host)
构造函数
|
RedisServer(String host,
int port)
构造函数
|
RedisServer(String host,
int port,
Properties properties)
构造函数
|
RedisServer(String host,
int port,
Role role)
构造函数
|
RedisServer(String host,
int port,
Role role,
Properties properties)
构造函数
|
RedisServer(String host,
Properties properties)
构造函数
|
RedisServer(String host,
Role role)
构造函数
|
RedisServer(String host,
Role role,
Properties properties)
构造函数
|
限定符和类型 | 方法和说明 |
---|---|
String |
asString() |
String |
get(RedisServer.Key key) |
Long |
getConfigEpoch() |
Long |
getDownAfterMilliseconds() |
Long |
getFailoverTimeout() |
Set<String> |
getFlags() |
Long |
getInfoRefresh() |
String |
getIp()
获取 Redis 服务器主机 IP 地址
|
Long |
getLastOkPingReply() |
Long |
getLastPingReply() |
Long |
getLastPingSent() |
Long |
getLinkPendingCommands() |
Long |
getLinkRefcount() |
Long |
getNumOtherSentinels() |
Long |
getNumSlaves() |
Long |
getODownTime() |
Long |
getParallelSyncs() |
Properties |
getProperties()
返回 Redis 服务器信息
|
Long |
getQuorum() |
Role |
getRoleReported() |
Long |
getRoleReportedTime() |
String |
getRunId() |
Long |
getSDownTime() |
public RedisServer(String host)
host
- Redis 节点地址public RedisServer(String host, int port)
host
- Redis 节点地址port
- Redis 端口public RedisServer(String host, int port, Role role)
host
- Redis 节点地址port
- Redis 端口role
- 节点角色public RedisServer(String host, Properties properties)
host
- Redis 节点地址properties
- Redis 服务器信息public RedisServer(String host, int port, Properties properties)
host
- Redis 节点地址port
- Redis 端口properties
- Redis 服务器信息public RedisServer(String host, Role role, Properties properties)
host
- Redis 节点地址role
- 节点角色properties
- Redis 服务器信息public RedisServer(String host, int port, Role role, Properties properties)
host
- Redis 节点地址port
- Redis 端口role
- 节点角色properties
- Redis 服务器信息public String getIp()
public Properties getProperties()
public Long getQuorum()
public String getRunId()
public Long getNumSlaves()
public Long getNumOtherSentinels()
public Long getParallelSyncs()
public Long getConfigEpoch()
public Long getInfoRefresh()
public Role getRoleReported()
public Long getRoleReportedTime()
public Long getLastPingSent()
public Long getLastPingReply()
public Long getLastOkPingReply()
public Long getLinkPendingCommands()
public Long getFailoverTimeout()
public Long getLinkRefcount()
public Long getODownTime()
public Long getSDownTime()
public Long getDownAfterMilliseconds()
public String get(RedisServer.Key key)
Copyright © 2023 buession.com Inc.. All rights reserved.