Interface TabletBalancer.AssignmentParameters
- 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
Modifier and TypeMethodDescriptionvoid
addAssignment
(TabletId tabletId, TabletServerId tabletServerId) AssignstabletId
totabletServerId
.
-
Method Details
-
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
AssignstabletId
totabletServerId
.
-