use of org.apache.accumulo.server.master.balancer.DefaultLoadBalancer in project accumulo by apache.
the class MasterClientServiceHandler method updatePlugins.
private void updatePlugins(String property) {
if (property.equals(Property.MASTER_TABLET_BALANCER.getKey())) {
AccumuloConfiguration conf = master.getConfiguration();
TabletBalancer balancer = Property.createInstanceFromPropertyName(conf, Property.MASTER_TABLET_BALANCER, TabletBalancer.class, new DefaultLoadBalancer());
balancer.init(master);
master.tabletBalancer = balancer;
log.info("tablet balancer changed to {}", master.tabletBalancer.getClass().getName());
}
}
Aggregations