本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例10: testStatusTemplateNoTables
import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateNoTables() throws IOException {
new MasterStatusTmpl().render(new StringWriter(), master);
}
示例11: testStatusTemplateNoTables
import org.apache.hadoop.hbase.tmpl.master.MasterStatusTmpl; //导入依赖的package包/类
@Test
public void testStatusTemplateNoTables() throws IOException {
new MasterStatusTmpl().render(new StringWriter(),
master, admin);
}