public class ClusterPartition extends Object
Constructor and Description |
---|
ClusterPartition(String nodeId) |
Modifier and Type | Method and Description |
---|---|
void |
addSlaveAddress(URI address) |
void |
addSlotRanges(Set<ClusterSlotRange> ranges) |
Set<URI> |
getAllAddresses() |
InetSocketAddress |
getMasterAddr() |
URI |
getMasterAddress() |
String |
getNodeId() |
Set<URI> |
getSlaveAddresses() |
Set<ClusterSlotRange> |
getSlotRanges() |
boolean |
isMasterFail() |
void |
removeSlaveAddress(URI uri) |
void |
removeSlotRanges(Set<ClusterSlotRange> ranges) |
void |
setMasterAddress(String masterAddress) |
void |
setMasterAddress(URI masterAddress) |
void |
setMasterFail(boolean masterFail) |
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 URI getMasterAddress()
public void setMasterAddress(String masterAddress)
public void setMasterAddress(URI masterAddress)
public void addSlaveAddress(URI address)
public void removeSlaveAddress(URI uri)
Copyright © 2014–2015. All rights reserved.