public class ClusterPartition extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ClusterPartition.Type |
Constructor | Description |
---|---|
ClusterPartition(String nodeId) |
Modifier and Type | Method | Description |
---|---|---|
void |
addFailedSlaveAddress(URI address) |
|
void |
addSlaveAddress(URI address) |
|
void |
addSlotRanges(Set<ClusterSlotRange> ranges) |
|
void |
addSlots(Set<Integer> slots) |
|
boolean |
equals(Object obj) |
|
Set<URI> |
getFailedSlaveAddresses() |
|
URI |
getMasterAddress() |
|
String |
getNodeId() |
|
ClusterPartition |
getParent() |
|
Set<URI> |
getSlaveAddresses() |
|
Set<ClusterSlotRange> |
getSlotRanges() |
|
Set<Integer> |
getSlots() |
|
ClusterPartition.Type |
getType() |
|
int |
hashCode() |
|
boolean |
isMasterFail() |
|
void |
removeFailedSlaveAddress(URI uri) |
|
void |
removeSlaveAddress(URI uri) |
|
void |
removeSlotRanges(Set<ClusterSlotRange> ranges) |
|
void |
removeSlots(Set<Integer> slots) |
|
void |
setMasterAddress(URI 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 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–2018 The Redisson Project. All rights reserved.