Search in sources :

Example 11 with AssignmentParamsImpl

use of org.apache.accumulo.core.manager.balancer.AssignmentParamsImpl in project accumulo by apache.

the class Manager method getAssignments.

void getAssignments(SortedMap<TServerInstance, TabletServerStatus> currentStatus, Map<KeyExtent, TServerInstance> unassigned, Map<KeyExtent, TServerInstance> assignedOut) {
    AssignmentParamsImpl params = AssignmentParamsImpl.fromThrift(currentStatus, unassigned, assignedOut);
    tabletBalancer.getAssignments(params);
}
Also used : AssignmentParamsImpl(org.apache.accumulo.core.manager.balancer.AssignmentParamsImpl)

Aggregations

AssignmentParamsImpl (org.apache.accumulo.core.manager.balancer.AssignmentParamsImpl)11 HashMap (java.util.HashMap)9 TabletId (org.apache.accumulo.core.data.TabletId)9 TabletServerId (org.apache.accumulo.core.spi.balancer.data.TabletServerId)9 Test (org.junit.jupiter.api.Test)6 ArrayList (java.util.ArrayList)3 TableId (org.apache.accumulo.core.data.TableId)3 TServerStatus (org.apache.accumulo.core.spi.balancer.data.TServerStatus)3 Map (java.util.Map)2 TreeMap (java.util.TreeMap)2 HashSet (java.util.HashSet)1 SortedMap (java.util.SortedMap)1 ConfigurationCopy (org.apache.accumulo.core.conf.ConfigurationCopy)1 BalanceParamsImpl (org.apache.accumulo.core.manager.balancer.BalanceParamsImpl)1 TabletServerIdImpl (org.apache.accumulo.core.manager.balancer.TabletServerIdImpl)1 TabletMigration (org.apache.accumulo.core.spi.balancer.data.TabletMigration)1 ConfigurationImpl (org.apache.accumulo.core.util.ConfigurationImpl)1 Test (org.junit.Test)1