org.apache.hadoop.hbase.master.handler
Class TableEventHandler
java.lang.Object
org.apache.hadoop.hbase.executor.EventHandler
org.apache.hadoop.hbase.master.handler.TableEventHandler
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Runnable>, java.lang.Runnable
- Direct Known Subclasses:
- DeleteTableHandler, ModifyTableHandler, TableAddFamilyHandler, TableDeleteFamilyHandler, TableModifyFamilyHandler
public abstract class TableEventHandler
- extends EventHandler
Base class for performing operations against tables.
Checks on whether the process can go forward are done in constructor rather
than later on in process(). The idea is to fail fast rather than
later down in an async invocation of process() (which currently has
no means of reporting back issues once started).
|
Method Summary |
protected abstract void |
handleTableOperation(java.util.List<HRegionInfo> regions)
|
void |
process()
This method is the main processing loop to be implemented by the various
subclasses. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
masterServices
protected final MasterServices masterServices
tableName
protected final byte[] tableName
tableNameStr
protected final java.lang.String tableNameStr
TableEventHandler
public TableEventHandler(EventHandler.EventType eventType,
byte[] tableName,
Server server,
MasterServices masterServices)
throws java.io.IOException
- Throws:
java.io.IOException
process
public void process()
- Description copied from class:
EventHandler
- This method is the main processing loop to be implemented by the various
subclasses.
- Specified by:
process in class EventHandler
handleTableOperation
protected abstract void handleTableOperation(java.util.List<HRegionInfo> regions)
throws java.io.IOException,
org.apache.zookeeper.KeeperException
- Throws:
java.io.IOException
org.apache.zookeeper.KeeperException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.