public class ClusterPartition extends Object
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() |
Set<URL> |
getSlaveAddresses() |
Set<ClusterSlotRange> |
getSlotRanges() |
Set<Integer> |
getSlots() |
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) |
String |
toString() |
public ClusterPartition(String nodeId)
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.