当前位置: 首页>>代码示例>>Java>>正文


Java DeadServer类代码示例

本文整理汇总了Java中org.apache.hadoop.hbase.master.DeadServer的典型用法代码示例。如果您正苦于以下问题:Java DeadServer类的具体用法?Java DeadServer怎么用?Java DeadServer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DeadServer类属于org.apache.hadoop.hbase.master包,在下文中一共展示了DeadServer类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ServerShutdownHandler

import org.apache.hadoop.hbase.master.DeadServer; //导入依赖的package包/类
ServerShutdownHandler(final Server server, final MasterServices services,
    final DeadServer deadServers, final ServerName serverName, EventType type,
    final boolean shouldSplitHlog) {
  super(server, type);
  this.serverName = serverName;
  this.server = server;
  this.services = services;
  this.deadServers = deadServers;
  if (!this.deadServers.isDeadServer(this.serverName)) {
    LOG.warn(this.serverName + " is NOT in deadservers; it should be!");
  }
  this.shouldSplitHlog = shouldSplitHlog;
  this.distributedLogReplay = HLogSplitter.isDistributedLogReplay(server.getConfiguration());
  this.regionAssignmentWaitTimeout = server.getConfiguration().getInt(
    HConstants.LOG_REPLAY_WAIT_REGION_TIMEOUT, 15000);
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:17,代码来源:ServerShutdownHandler.java

示例2: ServerShutdownHandler

import org.apache.hadoop.hbase.master.DeadServer; //导入依赖的package包/类
ServerShutdownHandler(final Server server, final MasterServices services,
    final DeadServer deadServers, final ServerName serverName, EventType type,
    final boolean shouldSplitHlog) {
  super(server, type);
  this.serverName = serverName;
  this.server = server;
  this.services = services;
  this.deadServers = deadServers;
  if (!this.deadServers.isDeadServer(this.serverName)) {
    LOG.warn(this.serverName + " is NOT in deadservers; it should be!");
  }
  this.shouldSplitHlog = shouldSplitHlog;
  this.distributedLogReplay = server.getConfiguration().getBoolean(
        HConstants.DISTRIBUTED_LOG_REPLAY_KEY, 
        HConstants.DEFAULT_DISTRIBUTED_LOG_REPLAY_CONFIG);
  this.regionAssignmentWaitTimeout = server.getConfiguration().getInt(
    HConstants.LOG_REPLAY_WAIT_REGION_TIMEOUT, 15000);
}
 
开发者ID:cloud-software-foundation,项目名称:c5,代码行数:19,代码来源:ServerShutdownHandler.java

示例3: MetaServerShutdownHandler

import org.apache.hadoop.hbase.master.DeadServer; //导入依赖的package包/类
public MetaServerShutdownHandler(final Server server,
    final MasterServices services,
    final DeadServer deadServers, final ServerName serverName,
    final boolean carryingRoot, final boolean carryingMeta) {
  super(server, services, deadServers, serverName,
    EventType.M_META_SERVER_SHUTDOWN, true);
  this.carryingRoot = carryingRoot;
  this.carryingMeta = carryingMeta;
}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:10,代码来源:MetaServerShutdownHandler.java

示例4: ServerShutdownHandler

import org.apache.hadoop.hbase.master.DeadServer; //导入依赖的package包/类
ServerShutdownHandler(final Server server, final MasterServices services,
    final DeadServer deadServers, final ServerName serverName, EventType type,
    final boolean shouldSplitHlog) {
  super(server, type);
  this.serverName = serverName;
  this.server = server;
  this.services = services;
  this.deadServers = deadServers;
  if (!this.deadServers.contains(this.serverName)) {
    LOG.warn(this.serverName + " is NOT in deadservers; it should be!");
  }
  this.shouldSplitHlog = shouldSplitHlog;
}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:14,代码来源:ServerShutdownHandler.java

示例5: ServerShutdownHandler

import org.apache.hadoop.hbase.master.DeadServer; //导入依赖的package包/类
ServerShutdownHandler(final Server server, final MasterServices services,
    final DeadServer deadServers, final ServerName serverName, EventType type,
    final boolean shouldSplitWal) {
  super(server, type);
  this.serverName = serverName;
  this.server = server;
  this.services = services;
  this.deadServers = deadServers;
  if (!this.deadServers.isDeadServer(this.serverName)) {
    LOG.warn(this.serverName + " is NOT in deadservers; it should be!");
  }
  this.shouldSplitWal = shouldSplitWal;
  this.regionAssignmentWaitTimeout = server.getConfiguration().getInt(
    HConstants.LOG_REPLAY_WAIT_REGION_TIMEOUT, 15000);
}
 
开发者ID:grokcoder,项目名称:pbase,代码行数:16,代码来源:ServerShutdownHandler.java

示例6: LogReplayHandler

import org.apache.hadoop.hbase.master.DeadServer; //导入依赖的package包/类
public LogReplayHandler(final Server server, final MasterServices services,
    final DeadServer deadServers, final ServerName serverName) {
  super(server, EventType.M_LOG_REPLAY);
  this.master = server;
  this.services = services;
  this.deadServers = deadServers;
  this.serverName = serverName;
  this.deadServers.add(serverName);
}
 
开发者ID:grokcoder,项目名称:pbase,代码行数:10,代码来源:LogReplayHandler.java

示例7: MetaServerShutdownHandler

import org.apache.hadoop.hbase.master.DeadServer; //导入依赖的package包/类
public MetaServerShutdownHandler(final Server server,
    final MasterServices services,
    final DeadServer deadServers, final ServerName serverName) {
  super(server, services, deadServers, serverName,
    EventType.M_META_SERVER_SHUTDOWN, true);
}
 
开发者ID:grokcoder,项目名称:pbase,代码行数:7,代码来源:MetaServerShutdownHandler.java


注:本文中的org.apache.hadoop.hbase.master.DeadServer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。