/** * Override setter from {@link SplitLogWorkerCoordination} */ @Override public void init(RegionServerServices server, Configuration conf, TaskExecutor splitExecutor, SplitLogWorker worker) { this.server = server; this.worker = worker; this.splitTaskExecutor = splitExecutor; maxConcurrentTasks = conf.getInt("hbase.regionserver.wal.max.splitters", DEFAULT_MAX_SPLITTERS); reportPeriod = conf.getInt("hbase.splitlog.report.period", conf.getInt(HConstants.HBASE_SPLITLOG_MANAGER_TIMEOUT, ZKSplitLogManagerCoordination.DEFAULT_TIMEOUT) / 3); }
/** * Initialize internal values. This method should be used when corresponding SplitLogWorker * instance is created * @param server instance of RegionServerServices to work with * @param conf is current configuration. * @param splitTaskExecutor split executor from SplitLogWorker * @param worker instance of SplitLogWorker */ void init(RegionServerServices server, Configuration conf, TaskExecutor splitTaskExecutor, SplitLogWorker worker);