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


Java MasterStatusTmpl类代码示例

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


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

示例1: testStatusTemplateWithServers

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateWithServers() throws IOException {
  setupMockTables();

  List<ServerName> servers = Lists.newArrayList(
      ServerName.valueOf("rootserver:123,12345"),
      ServerName.valueOf("metaserver:123,12345"));
  Set<ServerName> deadServers = new HashSet<ServerName>(
      Lists.newArrayList(
          ServerName.valueOf("badserver:123,12345"),
          ServerName.valueOf("uglyserver:123,12345"))
  );

  new MasterStatusTmpl()
    .setMetaLocation(ServerName.valueOf("metaserver:123,12345"))
    .setServers(servers)
    .setDeadServers(deadServers)
    .render(new StringWriter(), master);
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:20,代码来源:TestMasterStatusServlet.java

示例2: testStatusTemplateWithServers

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateWithServers() throws IOException {
  setupMockTables();
  
  List<ServerName> servers = Lists.newArrayList(
      new ServerName("rootserver:123,12345"),
      new ServerName("metaserver:123,12345"));
  Set<ServerName> deadServers = new HashSet<ServerName>(
      Lists.newArrayList(
      new ServerName("badserver:123,12345"),
      new ServerName("uglyserver:123,12345"))
  );

  new MasterStatusTmpl()
    .setRootLocation(new ServerName("rootserver:123,12345"))
    .setMetaLocation(new ServerName("metaserver:123,12345"))
    .setServers(servers)
    .setDeadServers(deadServers)
    .render(new StringWriter(),
      master, admin);
}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:22,代码来源:TestMasterStatusServlet.java

示例3: testStatusTemplateWithServers

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateWithServers() throws IOException {
  setupMockTables();
  
  List<ServerName> servers = Lists.newArrayList(
      ServerName.valueOf("rootserver:123,12345"),
      ServerName.valueOf("metaserver:123,12345"));
  Set<ServerName> deadServers = new HashSet<ServerName>(
      Lists.newArrayList(
          ServerName.valueOf("badserver:123,12345"),
          ServerName.valueOf("uglyserver:123,12345"))
  );

  new MasterStatusTmpl()
    .setMetaLocation(ServerName.valueOf("metaserver:123,12345"))
    .setServers(servers)
    .setDeadServers(deadServers)
    .render(new StringWriter(),
      master, admin);
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:21,代码来源:TestMasterStatusServlet.java

示例4: testStatusTemplateWithServers

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateWithServers() throws IOException {
  setupMockTables();

  List<ServerName> servers = Lists.newArrayList(
      ServerName.valueOf("rootserver,123,12345"),
      ServerName.valueOf("metaserver,123,12345"));
  Set<ServerName> deadServers = new HashSet<>(
      Lists.newArrayList(
          ServerName.valueOf("badserver,123,12345"),
          ServerName.valueOf("uglyserver,123,12345"))
  );

  new MasterStatusTmpl()
    .setMetaLocation(ServerName.valueOf("metaserver,123,12345"))
    .setServers(servers)
    .setDeadServers(deadServers)
    .render(new StringWriter(), master);
}
 
开发者ID:apache,项目名称:hbase,代码行数:20,代码来源:TestMasterStatusServlet.java

示例5: testStatusTemplateMetaAvailable

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateMetaAvailable() throws IOException {
  setupMockTables();

  new MasterStatusTmpl()
    .setMetaLocation(ServerName.valueOf("metaserver:123,12345"))
    .render(new StringWriter(), master);
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:9,代码来源:TestMasterStatusServlet.java

示例6: testStatusTemplateRootAvailable

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateRootAvailable() throws IOException {
  new MasterStatusTmpl()
    .setRootLocation(new ServerName("rootserver:123,12345"))
    .render(new StringWriter(),
      master, admin);
}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:8,代码来源:TestMasterStatusServlet.java

示例7: testStatusTemplateRootAndMetaAvailable

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateRootAndMetaAvailable() throws IOException {
  setupMockTables();
  
  new MasterStatusTmpl()
    .setRootLocation(new ServerName("rootserver:123,12345"))
    .setMetaLocation(new ServerName("metaserver:123,12345"))
    .render(new StringWriter(),
      master, admin);
}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:11,代码来源:TestMasterStatusServlet.java

示例8: testStatusTemplateMetaAvailable

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateMetaAvailable() throws IOException {
  setupMockTables();
  
  new MasterStatusTmpl()
    .setMetaLocation(ServerName.valueOf("metaserver:123,12345"))
    .render(new StringWriter(),
      master, admin);
}
 
开发者ID:tenggyut,项目名称:HIndex,代码行数:10,代码来源:TestMasterStatusServlet.java

示例9: testStatusTemplateMetaAvailable

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateMetaAvailable() throws IOException {
  setupMockTables();

  new MasterStatusTmpl()
    .setMetaLocation(ServerName.valueOf("metaserver,123,12345"))
    .render(new StringWriter(), master);
}
 
开发者ID:apache,项目名称:hbase,代码行数:9,代码来源:TestMasterStatusServlet.java

示例10: testStatusTemplateNoTables

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateNoTables() throws IOException {
  new MasterStatusTmpl().render(new StringWriter(), master);
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:5,代码来源:TestMasterStatusServlet.java

示例11: testStatusTemplateNoTables

import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateNoTables() throws IOException {
  new MasterStatusTmpl().render(new StringWriter(),
      master, admin);
}
 
开发者ID:fengchen8086,项目名称:LCIndex-HBase-0.94.16,代码行数:6,代码来源:TestMasterStatusServlet.java


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