Package org.redisson.cluster
Class ClusterNodeInfo
- java.lang.Object
-
- org.redisson.cluster.ClusterNodeInfo
-
public class ClusterNodeInfo extends Object
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterNodeInfo.Flag
-
Constructor Summary
Constructors Constructor Description ClusterNodeInfo(String nodeInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFlag(ClusterNodeInfo.Flag flag)
void
addSlotRange(ClusterSlotRange range)
boolean
containsFlag(ClusterNodeInfo.Flag flag)
RedisURI
getAddress()
String
getNodeId()
String
getNodeInfo()
String
getSlaveOf()
Set<ClusterSlotRange>
getSlotRanges()
void
setAddress(String address)
void
setNodeId(String nodeId)
void
setSlaveOf(String slaveOf)
String
toString()
-
-
-
Constructor Detail
-
ClusterNodeInfo
public ClusterNodeInfo(String nodeInfo)
-
-
Method Detail
-
getNodeId
public String getNodeId()
-
setNodeId
public void setNodeId(String nodeId)
-
getAddress
public RedisURI getAddress()
-
setAddress
public void setAddress(String address)
-
addSlotRange
public void addSlotRange(ClusterSlotRange range)
-
getSlotRanges
public Set<ClusterSlotRange> getSlotRanges()
-
containsFlag
public boolean containsFlag(ClusterNodeInfo.Flag flag)
-
addFlag
public void addFlag(ClusterNodeInfo.Flag flag)
-
getSlaveOf
public String getSlaveOf()
-
setSlaveOf
public void setSlaveOf(String slaveOf)
-
getNodeInfo
public String getNodeInfo()
-
-