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(URI address) |
void |
addSlaveAddress(URI address) |
void |
addSlotRanges(Set<ClusterSlotRange> ranges) |
void |
addSlots(BitSet slots) |
BitSet |
copySlots() |
boolean |
equals(Object obj) |
Set<URI> |
getFailedSlaveAddresses() |
URI |
getMasterAddress() |
String |
getNodeId() |
ClusterPartition |
getParent() |
Set<URI> |
getSlaveAddresses() |
Set<ClusterSlotRange> |
getSlotRanges() |
Iterable<Integer> |
getSlots() |
int |
getSlotsAmount() |
ClusterPartition.Type |
getType() |
int |
hashCode() |
boolean |
hasSlot(int slot) |
boolean |
isMasterFail() |
void |
removeFailedSlaveAddress(URI uri) |
void |
removeSlaveAddress(URI uri) |
void |
removeSlotRanges(Set<ClusterSlotRange> ranges) |
void |
removeSlots(BitSet slots) |
void |
setMasterAddress(URI masterAddress) |
void |
setMasterFail(boolean masterFail) |
void |
setParent(ClusterPartition parent) |
void |
setType(ClusterPartition.Type type) |
BitSet |
slots() |
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 addSlots(BitSet slots)
public void removeSlots(BitSet slots)
public void addSlotRanges(Set<ClusterSlotRange> ranges)
public void removeSlotRanges(Set<ClusterSlotRange> ranges)
public Set<ClusterSlotRange> getSlotRanges()
public BitSet slots()
public BitSet copySlots()
public boolean hasSlot(int slot)
public int getSlotsAmount()
public URI getMasterAddress()
public void setMasterAddress(URI masterAddress)
public void addFailedSlaveAddress(URI address)
public void removeFailedSlaveAddress(URI uri)
public void addSlaveAddress(URI address)
public void removeSlaveAddress(URI uri)
Copyright © 2014–2019 The Redisson Project. All rights reserved.