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 Detail

      • 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.