org.apache.hadoop.hbase.master.handler
Class DisableTableHandler

java.lang.Object
  extended by org.apache.hadoop.hbase.executor.EventHandler
      extended by org.apache.hadoop.hbase.master.handler.DisableTableHandler
All Implemented Interfaces:
Comparable<Runnable>, Runnable

@InterfaceAudience.Private
public class DisableTableHandler
extends EventHandler

Handler to run disable of a table.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.executor.EventHandler
EventHandler.EventHandlerListener
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.executor.EventHandler
eventType, seqids, server, waitingTimeForEvents
 
Constructor Summary
DisableTableHandler(Server server, TableName tableName, CatalogTracker catalogTracker, AssignmentManager assignmentManager, TableLockManager tableLockManager, boolean skipTableStateCheck)
           
 
Method Summary
 DisableTableHandler prepare()
          Event handlers should do all the necessary checks in this method (rather than in the constructor, or in process()) so that the caller, which is mostly executed in the ipc context can fail fast.
 void process()
          This method is the main processing loop to be implemented by the various subclasses.
 String toString()
           
 
Methods inherited from class org.apache.hadoop.hbase.executor.EventHandler
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, run, setListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisableTableHandler

public DisableTableHandler(Server server,
                           TableName tableName,
                           CatalogTracker catalogTracker,
                           AssignmentManager assignmentManager,
                           TableLockManager tableLockManager,
                           boolean skipTableStateCheck)
Method Detail

prepare

public DisableTableHandler prepare()
                            throws TableNotFoundException,
                                   TableNotEnabledException,
                                   IOException
Description copied from class: EventHandler
Event handlers should do all the necessary checks in this method (rather than in the constructor, or in process()) so that the caller, which is mostly executed in the ipc context can fail fast. Process is executed async from the client ipc, so this method gives a quick chance to do some basic checks. Should be called after constructing the EventHandler, and before process().

Overrides:
prepare in class EventHandler
Returns:
the instance of this class
Throws:
TableNotFoundException
TableNotEnabledException
IOException

toString

public String toString()
Overrides:
toString in class EventHandler

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


Copyright © 2015 The Apache Software Foundation. All rights reserved.