public class ClusterPartition extends Object
Constructor and Description |
---|
ClusterPartition() |
Modifier and Type | Method and Description |
---|---|
void |
addSlaveAddress(String address) |
int |
getEndSlot() |
String |
getMasterAddress() |
List<String> |
getSlaveAddresses() |
int |
getStartSlot() |
boolean |
isMasterFail() |
void |
setEndSlot(int endSlot) |
void |
setMasterAddress(String masterAddress) |
void |
setMasterFail(boolean masterFail) |
void |
setStartSlot(int startSlot) |
public void setMasterFail(boolean masterFail)
public boolean isMasterFail()
public int getStartSlot()
public void setStartSlot(int startSlot)
public int getEndSlot()
public void setEndSlot(int endSlot)
public String getMasterAddress()
public void setMasterAddress(String masterAddress)
public void addSlaveAddress(String address)
Copyright © 2014–2015. All rights reserved.