Search in sources :

Example 1 with RegionNormalizerTracker

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);
}
Also used : TableName(org.apache.hadoop.hbase.TableName) RegionNormalizerTracker(org.apache.hadoop.hbase.zookeeper.RegionNormalizerTracker)

Aggregations

TableName (org.apache.hadoop.hbase.TableName)1 RegionNormalizerTracker (org.apache.hadoop.hbase.zookeeper.RegionNormalizerTracker)1