Interface TabletBalancer.AssignmentParameters
-
- All Known Implementing Classes:
AssignmentParamsImpl
- Enclosing interface:
- TabletBalancer
public static interface TabletBalancer.AssignmentParameters
An interface for grouping parameters required for the balancer to assign unassigned tablets. This interface allows for evolution of the parameter set without changing the balancer's method signature.- Since:
- 2.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAssignment(TabletId tabletId, TabletServerId tabletServerId)
AssignstabletId
totabletServerId
.SortedMap<TabletServerId,TServerStatus>
currentStatus()
Map<TabletId,TabletServerId>
unassignedTablets()
-
-
-
Method Detail
-
currentStatus
SortedMap<TabletServerId,TServerStatus> currentStatus()
- Returns:
- the current status for all tablet servers (read-only)
-
unassignedTablets
Map<TabletId,TabletServerId> unassignedTablets()
- Returns:
- the tablets that need to be assigned, mapped to their previous known location (read-only)
-
addAssignment
void addAssignment(TabletId tabletId, TabletServerId tabletServerId)
AssignstabletId
totabletServerId
.
-
-