public class RedisNode extends Object implements NamedNode
| Modifier and Type | Class and Description |
|---|---|
static class |
RedisNode.NodeType |
static class |
RedisNode.RedisNodeBuilder
Builder for creating new
RedisNode. |
| Modifier | Constructor and Description |
|---|---|
protected |
RedisNode() |
|
RedisNode(String host,
int port)
|
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
boolean |
equals(Object obj) |
String |
getHost() |
String |
getId() |
String |
getMasterId() |
String |
getName() |
Integer |
getPort() |
RedisNode.NodeType |
getType() |
int |
hashCode() |
boolean |
isMaster() |
boolean |
isSlave() |
static RedisNode.RedisNodeBuilder |
newRedisNode()
Get
RedisNode.RedisNodeBuilder for creating new RedisNode. |
void |
setId(String id) |
void |
setName(String name) |
String |
toString() |
public RedisNode(String host, int port)
host - must not be nullport - protected RedisNode()
public String getHost()
public Integer getPort()
public String asString()
public void setName(String name)
public String getMasterId()
public String getId()
public void setId(String id)
id - public RedisNode.NodeType getType()
public boolean isMaster()
public boolean isSlave()
public static RedisNode.RedisNodeBuilder newRedisNode()
RedisNode.RedisNodeBuilder for creating new RedisNode.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.