use of org.apache.hadoop.hbase.zookeeper.RegionNormalizerTracker in project hbase by apache.
the class RegionNormalizerFactory method createNormalizerManager.
public static RegionNormalizerManager createNormalizerManager(final Configuration conf, final ZKWatcher zkWatcher, // TODO: consolidate this down to MasterServices
final HMaster master) {
final RegionNormalizer regionNormalizer = getRegionNormalizer(conf);
regionNormalizer.setMasterServices(master);
final RegionNormalizerTracker tracker = new RegionNormalizerTracker(zkWatcher, master);
final RegionNormalizerChore chore = master.isInMaintenanceMode() ? null : new RegionNormalizerChore(master);
final RegionNormalizerWorkQueue<TableName> workQueue = master.isInMaintenanceMode() ? null : new RegionNormalizerWorkQueue<>();
final RegionNormalizerWorker worker = master.isInMaintenanceMode() ? null : new RegionNormalizerWorker(conf, master, regionNormalizer, workQueue);
return new RegionNormalizerManager(tracker, chore, workQueue, worker);
}
Aggregations