All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hadoop.hbase.coprocessor.BaseMasterAndRegionObserver Maven / Gradle / Ivy

The newest version!
/*
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.hadoop.hbase.coprocessor;

import org.apache.hadoop.hbase.ClusterStatus;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.classification.InterfaceStability;
import org.apache.hadoop.hbase.HBaseInterfaceAudience;
import org.apache.hadoop.hbase.ProcedureInfo;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HRegionInfo;
import org.apache.hadoop.hbase.CoprocessorEnvironment;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.NamespaceDescriptor;
import org.apache.hadoop.hbase.ServerName;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.master.RegionPlan;
import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;
import org.apache.hadoop.hbase.net.Address;
import org.apache.hadoop.hbase.procedure2.ProcedureExecutor;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
import org.apache.hadoop.hbase.protobuf.generated.QuotaProtos.Quotas;

import java.io.IOException;
import java.util.List;
import java.util.Set;

@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)
@InterfaceStability.Evolving
public class BaseMasterAndRegionObserver extends BaseRegionObserver
    implements MasterObserver {
  @Override
  public void preCreateTable(ObserverContext ctx,
      HTableDescriptor desc, HRegionInfo[] regions) throws IOException {
  }

  @Override
  public void postCreateTable(ObserverContext ctx,
      HTableDescriptor desc, HRegionInfo[] regions) throws IOException {
  }

  @Override
  public void preDispatchMerge(final ObserverContext ctx,
      HRegionInfo regionA, HRegionInfo regionB) throws IOException {
  }

  @Override
  public void postDispatchMerge(final ObserverContext ctx,
      HRegionInfo regionA, HRegionInfo regionB) throws IOException {
  }

  @Override
  public void preGetClusterStatus(ObserverContext ctx)
    throws IOException {
  }

  @Override
  public void postGetClusterStatus(ObserverContext ctx,
      ClusterStatus status)
    throws IOException {
  }

  @Override
  public void preClearDeadServers(ObserverContext ctx)
    throws IOException {
  }

  @Override
  public void postClearDeadServers(ObserverContext ctx,
      List servers, List notClearedServers) throws IOException {
  }

  @Override
  public void preCreateTableHandler(
      final ObserverContext ctx,
      HTableDescriptor desc, HRegionInfo[] regions) throws IOException {
  }

  @Override
  public void postCreateTableHandler(
      final ObserverContext ctx,
      HTableDescriptor desc, HRegionInfo[] regions) throws IOException {
  }

  @Override
  public void preDeleteTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void postDeleteTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void preDeleteTableHandler(
      final ObserverContext ctx, TableName tableName)
      throws IOException{
  }

  @Override
  public void postDeleteTableHandler(
      final ObserverContext ctx, TableName tableName)
      throws IOException {
  }

  @Override
  public void preTruncateTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void postTruncateTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void preTruncateTableHandler(
      final ObserverContext ctx, TableName tableName)
      throws IOException {
  }

  @Override
  public void postTruncateTableHandler(
      final ObserverContext ctx, TableName tableName)
      throws IOException {
  }

  @Override
  public void preModifyTable(ObserverContext ctx,
      TableName tableName, HTableDescriptor htd) throws IOException {
  }

  @Override
  public void postModifyTableHandler(
      ObserverContext ctx, TableName tableName,
      HTableDescriptor htd) throws IOException {
  }

  @Override
  public void preModifyTableHandler(
      ObserverContext ctx, TableName tableName,
      HTableDescriptor htd) throws IOException {
  }

  @Override
  public void postModifyTable(ObserverContext ctx,
      TableName tableName, HTableDescriptor htd) throws IOException {
  }

  @Override
  public void preCreateNamespace(ObserverContext ctx,
      NamespaceDescriptor ns) throws IOException {
  }

  @Override
  public void postCreateNamespace(ObserverContext ctx,
      NamespaceDescriptor ns) throws IOException {
  }

  @Override
  public void preDeleteNamespace(ObserverContext ctx,
      String namespace) throws IOException {
  }

  @Override
  public void postDeleteNamespace(ObserverContext ctx,
      String namespace) throws IOException {
  }

  @Override
  public void preModifyNamespace(ObserverContext ctx,
      NamespaceDescriptor ns) throws IOException {
  }

  @Override
  public void postModifyNamespace(ObserverContext ctx,
      NamespaceDescriptor ns) throws IOException {
  }

  @Override
  public void preGetNamespaceDescriptor(ObserverContext ctx,
      String namespace) throws IOException {
  }

  @Override
  public void postGetNamespaceDescriptor(ObserverContext ctx,
      NamespaceDescriptor ns) throws IOException {
  }

  @Override
  public void preListNamespaces(ObserverContext ctx,
      List namespaces) throws IOException {
  }

  @Override
  public void postListNamespaces(ObserverContext ctx,
      List namespaces) throws IOException {
  }

  @Override
  public void preListNamespaceDescriptors(ObserverContext ctx,
      List descriptors) throws IOException {
  }

  @Override
  public void postListNamespaceDescriptors(ObserverContext ctx,
      List descriptors) throws IOException {
  }

  @Override
  public void preAddColumn(ObserverContext ctx,
      TableName tableName, HColumnDescriptor column) throws IOException {
  }

  @Override
  public void postAddColumn(ObserverContext ctx,
      TableName tableName, HColumnDescriptor column) throws IOException {
  }

  @Override
  public void preAddColumnHandler(
      ObserverContext ctx, TableName tableName,
      HColumnDescriptor column) throws IOException {
  }

  @Override
  public void postAddColumnHandler(
      ObserverContext ctx, TableName tableName,
      HColumnDescriptor column) throws IOException {
  }

  @Override
  public void preModifyColumn(ObserverContext ctx,
      TableName tableName, HColumnDescriptor descriptor) throws IOException {
  }

  @Override
  public void postModifyColumn(ObserverContext ctx,
      TableName tableName, HColumnDescriptor descriptor) throws IOException {
  }

  @Override
  public void preModifyColumnHandler(
      ObserverContext ctx, TableName tableName,
      HColumnDescriptor descriptor) throws IOException {
  }

  @Override
  public void postModifyColumnHandler(
      ObserverContext ctx, TableName tableName,
      HColumnDescriptor descriptor) throws IOException {
  }

  @Override
  public void preDeleteColumn(ObserverContext ctx,
      TableName tableName, byte[] c) throws IOException {
  }

  @Override
  public void postDeleteColumn(ObserverContext ctx,
      TableName tableName, byte[] c) throws IOException {
  }

  @Override
  public void preDeleteColumnHandler(
      ObserverContext ctx, TableName tableName,
      byte[] c) throws IOException {
  }

  @Override
  public void postDeleteColumnHandler(
      ObserverContext ctx, TableName tableName,
      byte[] c) throws IOException {
  }


  @Override
  public void preEnableTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void postEnableTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void preEnableTableHandler(
      ObserverContext ctx, TableName tableName)
      throws IOException {
  }

  @Override
  public void postEnableTableHandler(
      ObserverContext ctx, TableName tableName)
      throws IOException {
  }

  @Override
  public void preDisableTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void postDisableTable(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void preDisableTableHandler(
      ObserverContext ctx, TableName tableName)
      throws IOException {
  }

  @Override
  public void postDisableTableHandler(
      ObserverContext ctx, TableName tableName)
      throws IOException {
  }

  @Override
  public void preAbortProcedure(
      ObserverContext ctx,
      final ProcedureExecutor procEnv,
      final long procId) throws IOException {
  }

  @Override
  public void postAbortProcedure(ObserverContext ctx)
      throws IOException {
  }

  @Override
  public void preListProcedures(ObserverContext ctx)
      throws IOException {
  }

  @Override
  public void postListProcedures(
      ObserverContext ctx,
      List procInfoList) throws IOException {
  }

  @Override
  public void preAssign(ObserverContext ctx,
      HRegionInfo regionInfo) throws IOException {
  }

  @Override
  public void postAssign(ObserverContext ctx,
      HRegionInfo regionInfo) throws IOException {
  }

  @Override
  public void preUnassign(ObserverContext ctx,
      HRegionInfo regionInfo, boolean force) throws IOException {
  }

  @Override
  public void postUnassign(ObserverContext ctx,
      HRegionInfo regionInfo, boolean force) throws IOException {
  }

  @Override
  public void preRegionOffline(ObserverContext ctx,
    HRegionInfo regionInfo) throws IOException {
  }

  @Override
  public void postRegionOffline(ObserverContext ctx,
    HRegionInfo regionInfo) throws IOException {
  }

  @Override
  public void preBalance(ObserverContext ctx)
      throws IOException {
  }

  @Override
  public void postBalance(ObserverContext ctx, List plans)
      throws IOException {
  }

  @Override
  public boolean preSetSplitOrMergeEnabled(ObserverContext ctx,
                                           boolean newValue,
                                           Admin.MasterSwitchType switchType)
      throws IOException {
    return false;
  }

  @Override
  public void postSetSplitOrMergeEnabled(ObserverContext ctx,
                                         boolean newValue,
                                         Admin.MasterSwitchType switchType)
      throws IOException {

  }

  @Override
  public boolean preBalanceSwitch(ObserverContext ctx,
      boolean b) throws IOException {
    return b;
  }

  @Override
  public void postBalanceSwitch(ObserverContext ctx,
      boolean oldValue, boolean newValue) throws IOException {
  }

  @Override
  public void preShutdown(ObserverContext ctx)
      throws IOException {
  }

  @Override
  public void preStopMaster(ObserverContext ctx)
      throws IOException {
  }

  @Override
  public void postStartMaster(ObserverContext ctx)
      throws IOException {
  }

  @Override
  public void preMasterInitialization(
      ObserverContext ctx) throws IOException {
  }

  @Override
  public void start(CoprocessorEnvironment ctx) throws IOException {
  }

  @Override
  public void stop(CoprocessorEnvironment ctx) throws IOException {
  }

  @Override
  public void preMove(ObserverContext ctx,
      HRegionInfo region, ServerName srcServer, ServerName destServer)
  throws IOException {
  }

  @Override
  public void postMove(ObserverContext ctx,
      HRegionInfo region, ServerName srcServer, ServerName destServer)
  throws IOException {
  }

  @Override
  public void preSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
      throws IOException {
  }

  @Override
  public void postSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
      throws IOException {
  }

  @Override
  public void preListSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot) throws IOException {
  }

  @Override
  public void postListSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot) throws IOException {
  }

  @Override
  public void preCloneSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
      throws IOException {
  }

  @Override
  public void postCloneSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
      throws IOException {
  }

  @Override
  public void preRestoreSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
      throws IOException {
  }

  @Override
  public void postRestoreSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
      throws IOException {
  }

  @Override
  public void preDeleteSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot) throws IOException {
  }

  @Override
  public void postDeleteSnapshot(final ObserverContext ctx,
      final SnapshotDescription snapshot) throws IOException {
  }

  @Override
  public void preGetTableDescriptors(ObserverContext ctx,
      List tableNamesList, List descriptors)
      throws IOException {
  }

  @Override
  public void postGetTableDescriptors(ObserverContext ctx,
      List descriptors) throws IOException {
  }

  @Override
  public void preGetTableDescriptors(ObserverContext ctx,
      List tableNamesList, List descriptors,
      String regex) throws IOException {
  }

  @Override
  public void postGetTableDescriptors(ObserverContext ctx,
      List tableNamesList, List descriptors,
      String regex) throws IOException {
  }

  @Override
  public void preGetTableNames(ObserverContext ctx,
      List descriptors, String regex) throws IOException {
  }

  @Override
  public void postGetTableNames(ObserverContext ctx,
      List descriptors, String regex) throws IOException {
  }

  @Override
  public void preTableFlush(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void postTableFlush(ObserverContext ctx,
      TableName tableName) throws IOException {
  }

  @Override
  public void preSetUserQuota(final ObserverContext ctx,
      final String userName, final Quotas quotas) throws IOException {
  }

  @Override
  public void postSetUserQuota(final ObserverContext ctx,
      final String userName, final Quotas quotas) throws IOException {
  }

  @Override
  public void preSetUserQuota(final ObserverContext ctx,
      final String userName, final TableName tableName, final Quotas quotas) throws IOException {
  }

  @Override
  public void postSetUserQuota(final ObserverContext ctx,
      final String userName, final TableName tableName, final Quotas quotas) throws IOException {
  }

  @Override
  public void preSetUserQuota(final ObserverContext ctx,
      final String userName, final String namespace, final Quotas quotas) throws IOException {
  }

  @Override
  public void postSetUserQuota(final ObserverContext ctx,
      final String userName, final String namespace, final Quotas quotas) throws IOException {
  }

  @Override
  public void preSetTableQuota(final ObserverContext ctx,
      final TableName tableName, final Quotas quotas) throws IOException {
  }

  @Override
  public void postSetTableQuota(final ObserverContext ctx,
      final TableName tableName, final Quotas quotas) throws IOException {
  }

  @Override
  public void preSetNamespaceQuota(final ObserverContext ctx,
      final String namespace, final Quotas quotas) throws IOException {
  }

  @Override
  public void postSetNamespaceQuota(final ObserverContext ctx,
      final String namespace, final Quotas quotas) throws IOException {
  }

  @Override
  public void postAddRSGroup(ObserverContext ctx, String name)
      throws IOException {
  }

  @Override
  public void postBalanceRSGroup(ObserverContext ctx,
                                 String groupName, boolean balancerRan) throws IOException {
  }

  @Override
  public void postMoveServers(ObserverContext ctx, Set
servers, String targetGroup) throws IOException { } @Override public void postMoveTables(ObserverContext ctx, Set tables, String targetGroup) throws IOException { } @Override public void preMoveServersAndTables(ObserverContext ctx, Set
servers, Set tables, String targetGroup) throws IOException { } @Override public void postMoveServersAndTables(ObserverContext ctx, Set
servers, Set tables, String targetGroup) throws IOException { } @Override public void postRemoveRSGroup(ObserverContext ctx, String name) throws IOException { } @Override public void preAddRSGroup(ObserverContext ctx, String name) throws IOException { } @Override public void preBalanceRSGroup(ObserverContext ctx, String groupName) throws IOException { } @Override public void preMoveServers(ObserverContext ctx, Set
servers, String targetGroup) throws IOException { } @Override public void preMoveTables(ObserverContext ctx, Set tables, String targetGroup) throws IOException { } @Override public void preRemoveRSGroup(ObserverContext ctx, String name) throws IOException { } @Override public void preRemoveServers(ObserverContext ctx, Set
servers) throws IOException { } @Override public void postRemoveServers(ObserverContext ctx, Set
servers) throws IOException { } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy