Java 类org.apache.hadoop.hbase.coprocessor.MasterObserver 实例源码

项目:hbase    文件:MasterCoprocessorHost.java   
public void preShutdown() throws IOException {
  // While stopping the cluster all coprocessors method should be executed first then the
  // coprocessor should be cleaned up.
  if (coprocEnvironments.isEmpty()) {
    return;
  }
  execShutdown(new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preShutdown(this);
    }
    @Override
    public void postEnvCall() {
      // invoke coprocessor stop method
      shutdown(this.getEnvironment());
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preEnableReplicationPeer(final String peerId) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preEnableReplicationPeer(this, peerId);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postCreateNamespace(final NamespaceDescriptor ns) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postCreateNamespace(this, ns);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preDeleteNamespace(final String namespaceName) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preDeleteNamespace(this, namespaceName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postRemoveServers(final Set<Address> servers)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postRemoveServers(this, servers);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postRequestLock(String namespace, TableName tableName, RegionInfo[] regionInfos,
    LockType type, String description) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postRequestLock(this, namespace, tableName, regionInfos, description);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postGetNamespaceDescriptor(final NamespaceDescriptor ns)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postGetNamespaceDescriptor(this, ns);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preListNamespaceDescriptors(final List<NamespaceDescriptor> descriptors)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preListNamespaceDescriptors(this, descriptors);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postListNamespaceDescriptors(final List<NamespaceDescriptor> descriptors)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postListNamespaceDescriptors(this, descriptors);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preMoveServers(final Set<Address> servers, final String targetGroup)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preMoveServers(this, servers, targetGroup);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postCreateTable(final TableDescriptor htd, final RegionInfo[] regions)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postCreateTable(this, htd, regions);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preClearDeadServers() throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preClearDeadServers(this);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postCompletedCreateTableAction(
    final TableDescriptor htd, final RegionInfo[] regions, final User user) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postCompletedCreateTableAction(this, htd, regions);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preDeleteTable(final TableName tableName) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preDeleteTable(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postDeleteTable(final TableName tableName) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postDeleteTable(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preDeleteTableAction(final TableName tableName, final User user) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preDeleteTableAction(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postCompletedDeleteTableAction(final TableName tableName, final User user)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postCompletedDeleteTableAction(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preTruncateTable(final TableName tableName) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preTruncateTable(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postTruncateTable(final TableName tableName) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postTruncateTable(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preRemoveReplicationPeer(final String peerId) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preRemoveReplicationPeer(this, peerId);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postMoveServersAndTables(final Set<Address> servers, final Set<TableName> tables,
    final String targetGroup) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postMoveServersAndTables(this, servers, tables, targetGroup);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preDecommissionRegionServers(List<ServerName> servers, boolean offload) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preDecommissionRegionServers(this, servers, offload);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preModifyTableAction(final TableName tableName, final TableDescriptor htd,
    final User user) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preModifyTableAction(this, tableName, htd);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postCompletedModifyTableAction(final TableName tableName, final TableDescriptor htd,
    final User user) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postCompletedModifyTableAction(this, tableName, htd);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preRemoveRSGroup(final String name)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preRemoveRSGroup(this, name);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postEnableTable(final TableName tableName) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postEnableTable(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postDecommissionRegionServers(List<ServerName> servers, boolean offload) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postDecommissionRegionServers(this, servers, offload);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postCompletedEnableTableAction(final TableName tableName, final User user)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postCompletedEnableTableAction(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postAddRSGroup(final String name)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postAddRSGroup(this, name);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preAddRSGroup(final String name)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preAddRSGroup(this, name);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preDisableTableAction(final TableName tableName, final User user) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preDisableTableAction(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postCompletedDisableTableAction(final TableName tableName, final User user)
    throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation(user) {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postCompletedDisableTableAction(this, tableName);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preAbortProcedure(
    final ProcedureExecutor<MasterProcedureEnv> procEnv,
    final long procId) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preAbortProcedure(this,  procId);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postAbortProcedure() throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postAbortProcedure(this);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preGetProcedures() throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preGetProcedures(this);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postGetProcedures(final List<Procedure<?>> procInfoList) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postGetProcedures(this);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preGetLocks() throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preGetLocks(this);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postGetLocks(final List<LockedResource> lockedResources) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postGetLocks(this);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void preMove(final RegionInfo region, final ServerName srcServer,
    final ServerName destServer) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.preMove(this, region, srcServer, destServer);
    }
  });
}
项目:hbase    文件:MasterCoprocessorHost.java   
public void postMove(final RegionInfo region, final ServerName srcServer,
    final ServerName destServer) throws IOException {
  execOperation(coprocEnvironments.isEmpty() ? null : new MasterObserverOperation() {
    @Override
    public void call(MasterObserver observer) throws IOException {
      observer.postMove(this, region, srcServer, destServer);
    }
  });
}