Modifier and Type | Class and Description |
---|---|
static class |
RedisServer.INFO |
RedisNode.NodeType, RedisNode.RedisNodeBuilder
Constructor and Description |
---|
RedisServer(String host,
int port)
|
RedisServer(String host,
int port,
Properties properties)
|
Modifier and Type | Method and Description |
---|---|
String |
get(RedisServer.INFO info) |
String |
get(String key) |
Long |
getConfigEpoch() |
Long |
getDownAfterMilliseconds() |
Long |
getFailoverTimeout() |
String |
getFlags() |
Long |
getInfoRefresh() |
Long |
getLastOkPingReply() |
Long |
getLastPingSent() |
Long |
getNumberOtherSentinels() |
Long |
getNumberSlaves() |
Long |
getParallelSyncs() |
Long |
getPendingCommands() |
Long |
getQuorum() |
String |
getRoleReported() |
String |
getRunId() |
boolean |
isMaster() |
static RedisServer |
newServerFrom(Properties properties)
Creates a new
RedisServer from the given properties. |
Long |
roleReportedTime() |
void |
setQuorum(Long quorum) |
public RedisServer(String host, int port)
host
- must not be nullport
- public RedisServer(String host, int port, Properties properties)
host
- must not be nullport
- properties
- may be nullpublic static RedisServer newServerFrom(Properties properties)
RedisServer
from the given properties.properties
- public void setQuorum(Long quorum)
public String getRunId()
public String getFlags()
public Long getPendingCommands()
public Long getLastPingSent()
public Long getLastOkPingReply()
public Long getDownAfterMilliseconds()
public Long getInfoRefresh()
public String getRoleReported()
public Long roleReportedTime()
public Long getConfigEpoch()
public Long getNumberSlaves()
public Long getNumberOtherSentinels()
public Long getQuorum()
public Long getFailoverTimeout()
public Long getParallelSyncs()
public String get(RedisServer.INFO info)
info
- must not be nullRedisServer.INFO
.Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.