org.apache.hadoop.hbase.coprocessor.BaseMasterObserver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hbase-server Show documentation
Show all versions of hbase-server Show documentation
Server functionality for HBase
/*
*
* 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.classification.InterfaceAudience;
import org.apache.hadoop.hbase.classification.InterfaceStability;
import org.apache.hadoop.hbase.HBaseInterfaceAudience;
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.master.RegionPlan;
import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription;
import java.io.IOException;
import java.util.List;
@InterfaceAudience.LimitedPrivate({HBaseInterfaceAudience.COPROC, HBaseInterfaceAudience.CONFIG})
@InterfaceStability.Evolving
public class BaseMasterObserver 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 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 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 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 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 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 {
}
}