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 Details

    • 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)
      Assigns tabletId to tabletServerId.