public class ClusterPartition extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterPartition.Type |
Constructor and Description |
---|
ClusterPartition(String nodeId) |
Modifier and Type | Method and Description |
---|---|
void |
addFailedSlaveAddress(URL address) |
void |
addSlaveAddress(URL address) |
void |
addSlotRanges(Set<ClusterSlotRange> ranges) |
void |
addSlots(Set<Integer> slots) |
boolean |
equals(Object obj) |
Set<URL> |
getFailedSlaveAddresses() |
InetSocketAddress |
getMasterAddr() |
URL |
getMasterAddress() |
String |
getNodeId() |
ClusterPartition |
getParent() |
Set<URL> |
getSlaveAddresses() |
Set<ClusterSlotRange> |
getSlotRanges() |
Set<Integer> |
getSlots() |
ClusterPartition.Type |
getType() |
int |
hashCode() |
boolean |
isMasterFail() |
void |
removeFailedSlaveAddress(URL uri) |
void |
removeSlaveAddress(URL uri) |
void |
removeSlotRanges(Set<ClusterSlotRange> ranges) |
void |
removeSlots(Set<Integer> slots) |
void |
setMasterAddress(String masterAddress) |
void |
setMasterAddress(URL masterAddress) |
void |
setMasterFail(boolean masterFail) |
void |
setParent(ClusterPartition parent) |
void |
setType(ClusterPartition.Type type) |
String |
toString() |
public ClusterPartition(String nodeId)
public ClusterPartition getParent()
public void setParent(ClusterPartition parent)
public void setType(ClusterPartition.Type type)
public ClusterPartition.Type getType()
public String getNodeId()
public void setMasterFail(boolean masterFail)
public boolean isMasterFail()
public void addSlotRanges(Set<ClusterSlotRange> ranges)
public void removeSlotRanges(Set<ClusterSlotRange> ranges)
public Set<ClusterSlotRange> getSlotRanges()
public InetSocketAddress getMasterAddr()
public URL getMasterAddress()
public void setMasterAddress(String masterAddress)
public void setMasterAddress(URL masterAddress)
public void addFailedSlaveAddress(URL address)
public void removeFailedSlaveAddress(URL uri)
public void addSlaveAddress(URL address)
public void removeSlaveAddress(URL uri)
Copyright © 2014–2017 The Redisson Project. All rights reserved.