Interface TabletBalancer.BalanceParameters
-
- All Known Implementing Classes:
BalanceParamsImpl
- Enclosing interface:
- TabletBalancer
public static interface TabletBalancer.BalanceParameters
An interface for grouping parameters required for the balancer to balance 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 Set<TabletId>
currentMigrations()
SortedMap<TabletServerId,TServerStatus>
currentStatus()
List<TabletMigration>
migrationsOut()
-
-
-
Method Detail
-
currentStatus
SortedMap<TabletServerId,TServerStatus> currentStatus()
- Returns:
- the current status for all tablet servers (read-only)
-
currentMigrations
Set<TabletId> currentMigrations()
- Returns:
- the migrations that are currently in progress (read-only)
-
migrationsOut
List<TabletMigration> migrationsOut()
- Returns:
- a write-only map for storing new assignments made by the balancer. It is important
that any tablets found in
currentMigrations()
are not included in the output migrations.
-
-