Ejemplo n.º 1
0
 @Override
 protected void handleTableOperation(List<HRegionInfo> hris) throws IOException {
   MasterCoprocessorHost cpHost = ((HMaster) this.server).getCoprocessorHost();
   if (cpHost != null) {
     cpHost.preModifyTableHandler(this.tableName, this.htd);
   }
   // Update descriptor
   this.masterServices.getTableDescriptors().add(this.htd);
   if (cpHost != null) {
     cpHost.postModifyTableHandler(this.tableName, this.htd);
   }
 }