public class Cell extends Object
| Constructor and Description |
|---|
Cell(int cellId, Set<Integer> brokers, CellState state, short minSize, short maxSize)Represents the contents of a cell. |
| Modifier and Type | Method and Description |
|---|---|
Set<Integer> | brokers()Return the set of brokers assigned to this cell |
List<Integer> | brokersList()Return the list of brokers assigned to this cell |
int | cellId()The unique cell Id |
boolean | equals(Object o) |
int | hashCode() |
short | maxSize()Return the max cell size, a cell cannot be over maxSize number of brokers |
short | minSize()Return the min cell size, there must be at least minSize brokers before a cell is considered usable |
CellState | state()Return the cell state (ready, quarantined, excluded) |
String | toString() |
public Cell(int cellId,
Set<Integer> brokers,
CellState state,
short minSize,
short maxSize)cellId - the cell idbrokers - the brokers assigned to this cellstate - the cell state (ready, quarantined, excluded)minSize - the min cell size, there must be at least minSize brokers before a cell is considered usablemaxSize - the max cell size, a cell cannot be over maxSize number of brokerspublic int cellId()
public short minSize()
public short maxSize()
public CellState state()
public Set<Integer> brokers()
public List<Integer> brokersList()