Java 类org.apache.hadoop.hbase.MockRegionServerServices 实例源码

项目:hbase    文件:TestCoreRegionCoprocessor.java   
@Before
public void before() throws IOException {
  String methodName = this.name.getMethodName();
  TableName tn = TableName.valueOf(methodName);
  ColumnFamilyDescriptor cfd = ColumnFamilyDescriptorBuilder.newBuilder(Bytes.toBytes(methodName)).build();
  TableDescriptor td = TableDescriptorBuilder.newBuilder(tn).addColumnFamily(cfd).build();
  RegionInfo ri = RegionInfoBuilder.newBuilder(tn).build();
  this.rss = new MockRegionServerServices(HTU.getConfiguration());
  this.region = HRegion.openHRegion(ri, td, null, HTU.getConfiguration(), this.rss, null);
}
项目:hbase    文件:TestCoreRegionServerCoprocessor.java   
@Before
public void before() throws IOException {
  String methodName = this.name.getMethodName();
  this.rss = new MockRegionServerServices(HTU.getConfiguration());
  this.rsch = new RegionServerCoprocessorHost(this.rss, HTU.getConfiguration());
}