Java 类org.apache.hadoop.hbase.regionserver.SplitLogWorker 实例源码

项目:ditb    文件:ZkSplitLogWorkerCoordination.java   
/**
 * 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);
}
项目:pbase    文件:ZkSplitLogWorkerCoordination.java   
/**
 * 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);
}
项目:hbase    文件:ZkSplitLogWorkerCoordination.java   
/**
 * 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);
}
项目:ditb    文件:SplitLogWorkerCoordination.java   
/**
 * 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);
项目:pbase    文件:SplitLogWorkerCoordination.java   
/**
 * 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);
项目:hbase    文件:SplitLogWorkerCoordination.java   
/**
 * 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);