org.apache.hadoop.hbase.master
Class MasterCoprocessorHost

java.lang.Object
  extended by org.apache.hadoop.hbase.coprocessor.CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>
      extended by org.apache.hadoop.hbase.master.MasterCoprocessorHost

public class MasterCoprocessorHost
extends CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>

Provides the coprocessor framework and environment for master oriented operations. HMaster interacts with the loaded coprocessors through this class.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
CoprocessorHost.Environment
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
conf, coprocessors, loadSequence, MASTER_COPROCESSOR_CONF_KEY, pathPrefix, REGION_COPROCESSOR_CONF_KEY, REGIONSERVER_COPROCESSOR_CONF_KEY, USER_REGION_COPROCESSOR_CONF_KEY, WAL_COPROCESSOR_CONF_KEY
 
Method Summary
protected  void abortServer(CoprocessorEnvironment env, Throwable e)
           
 org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment createEnvironment(Class<?> implClass, Coprocessor instance, int priority, int seq, org.apache.hadoop.conf.Configuration conf)
          Called when a new Coprocessor class is loaded
 void postCloneSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor)
           
 void postDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
           
 void postGetTableDescriptors(List<HTableDescriptor> descriptors)
           
 void postRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor)
           
 void postSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor)
           
 void preCloneSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor)
           
 void preDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
           
 boolean preGetTableDescriptors(List<String> tableNamesList, List<HTableDescriptor> descriptors)
           
 void preRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor)
           
 void preSnapshot(HBaseProtos.SnapshotDescription snapshot, HTableDescriptor hTableDescriptor)
           
 
Methods inherited from class org.apache.hadoop.hbase.coprocessor.CoprocessorHost
abortServer, findCoprocessor, findCoprocessorEnvironment, getCoprocessors, getLoadedCoprocessors, handleCoprocessorThrowable, load, load, loadInstance, loadSystemCoprocessors, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createEnvironment

public org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment createEnvironment(Class<?> implClass,
                                                                                                Coprocessor instance,
                                                                                                int priority,
                                                                                                int seq,
                                                                                                org.apache.hadoop.conf.Configuration conf)
Description copied from class: CoprocessorHost
Called when a new Coprocessor class is loaded

Specified by:
createEnvironment in class CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>

abortServer

protected void abortServer(CoprocessorEnvironment env,
                           Throwable e)
Overrides:
abortServer in class CoprocessorHost<org.apache.hadoop.hbase.master.MasterCoprocessorHost.MasterEnvironment>

preSnapshot

public void preSnapshot(HBaseProtos.SnapshotDescription snapshot,
                        HTableDescriptor hTableDescriptor)
                 throws IOException
Throws:
IOException

postSnapshot

public void postSnapshot(HBaseProtos.SnapshotDescription snapshot,
                         HTableDescriptor hTableDescriptor)
                  throws IOException
Throws:
IOException

preCloneSnapshot

public void preCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
                             HTableDescriptor hTableDescriptor)
                      throws IOException
Throws:
IOException

postCloneSnapshot

public void postCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
                              HTableDescriptor hTableDescriptor)
                       throws IOException
Throws:
IOException

preRestoreSnapshot

public void preRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
                               HTableDescriptor hTableDescriptor)
                        throws IOException
Throws:
IOException

postRestoreSnapshot

public void postRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
                                HTableDescriptor hTableDescriptor)
                         throws IOException
Throws:
IOException

preDeleteSnapshot

public void preDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
                       throws IOException
Throws:
IOException

postDeleteSnapshot

public void postDeleteSnapshot(HBaseProtos.SnapshotDescription snapshot)
                        throws IOException
Throws:
IOException

preGetTableDescriptors

public boolean preGetTableDescriptors(List<String> tableNamesList,
                                      List<HTableDescriptor> descriptors)
                               throws IOException
Throws:
IOException

postGetTableDescriptors

public void postGetTableDescriptors(List<HTableDescriptor> descriptors)
                             throws IOException
Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.