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

项目: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);
}
项目:ditb    文件:WALSplitterHandler.java   
public WALSplitterHandler(final Server server, SplitLogWorkerCoordination coordination,
    SplitLogWorkerCoordination.SplitTaskDetails splitDetails, CancelableProgressable reporter,
    AtomicInteger inProgressTasks, TaskExecutor splitTaskExecutor, RecoveryMode mode) {
  super(server, EventType.RS_LOG_REPLAY);
  this.splitTaskDetails = splitDetails;
  this.coordination = coordination;
  this.reporter = reporter;
  this.inProgressTasks = inProgressTasks;
  this.inProgressTasks.incrementAndGet();
  this.serverName = server.getServerName();
  this.splitTaskExecutor = splitTaskExecutor;
  this.mode = mode;
}
项目: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);
}
项目:pbase    文件:WALSplitterHandler.java   
public WALSplitterHandler(final Server server, SplitLogWorkerCoordination coordination,
    SplitLogWorkerCoordination.SplitTaskDetails splitDetails, CancelableProgressable reporter,
    AtomicInteger inProgressTasks, TaskExecutor splitTaskExecutor, RecoveryMode mode) {
  super(server, EventType.RS_LOG_REPLAY);
  this.splitTaskDetails = splitDetails;
  this.coordination = coordination;
  this.reporter = reporter;
  this.inProgressTasks = inProgressTasks;
  this.inProgressTasks.incrementAndGet();
  this.serverName = server.getServerName();
  this.splitTaskExecutor = splitTaskExecutor;
  this.mode = mode;
}
项目:HIndex    文件:HLogSplitterHandler.java   
public HLogSplitterHandler(final Server server, String curTask,
    final MutableInt curTaskZKVersion,
    CancelableProgressable reporter,
    AtomicInteger inProgressTasks, TaskExecutor splitTaskExecutor) {
 super(server, EventType.RS_LOG_REPLAY);
  this.curTask = curTask;
  this.wal = ZKSplitLog.getFileName(curTask);
  this.reporter = reporter;
  this.inProgressTasks = inProgressTasks;
  this.inProgressTasks.incrementAndGet();
  this.serverName = server.getServerName();
  this.zkw = server.getZooKeeper();
  this.curTaskZKVersion = curTaskZKVersion;
  this.splitTaskExecutor = splitTaskExecutor;
}
项目: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);
}
项目:hbase    文件:WALSplitterHandler.java   
public WALSplitterHandler(final Server server, SplitLogWorkerCoordination coordination,
    SplitLogWorkerCoordination.SplitTaskDetails splitDetails, CancelableProgressable reporter,
    AtomicInteger inProgressTasks, TaskExecutor splitTaskExecutor) {
  super(server, EventType.RS_LOG_REPLAY);
  this.splitTaskDetails = splitDetails;
  this.coordination = coordination;
  this.reporter = reporter;
  this.inProgressTasks = inProgressTasks;
  this.inProgressTasks.incrementAndGet();
  this.serverName = server.getServerName();
  this.splitTaskExecutor = splitTaskExecutor;
}
项目:PyroDB    文件:HLogSplitterHandler.java   
public HLogSplitterHandler(final Server server, String curTask,
    final MutableInt curTaskZKVersion,
    CancelableProgressable reporter,
    AtomicInteger inProgressTasks, TaskExecutor splitTaskExecutor) {
 super(server, EventType.RS_LOG_REPLAY);
  this.curTask = curTask;
  this.wal = ZKSplitLog.getFileName(curTask);
  this.reporter = reporter;
  this.inProgressTasks = inProgressTasks;
  this.inProgressTasks.incrementAndGet();
  this.serverName = server.getServerName();
  this.zkw = server.getZooKeeper();
  this.curTaskZKVersion = curTaskZKVersion;
  this.splitTaskExecutor = splitTaskExecutor;
}
项目:c5    文件:HLogSplitterHandler.java   
public HLogSplitterHandler(final Server server, String curTask,
    final MutableInt curTaskZKVersion,
    CancelableProgressable reporter,
    AtomicInteger inProgressTasks, TaskExecutor splitTaskExecutor) {
 super(server, EventType.RS_LOG_REPLAY);
  this.curTask = curTask;
  this.wal = ZKSplitLog.getFileName(curTask);
  this.reporter = reporter;
  this.inProgressTasks = inProgressTasks;
  this.inProgressTasks.incrementAndGet();
  this.serverName = server.getServerName();
  this.zkw = server.getZooKeeper();
  this.curTaskZKVersion = curTaskZKVersion;
  this.splitTaskExecutor = splitTaskExecutor;
}
项目: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);