@InterfaceAudience.Private public class EnableTableHandler extends EventHandler
EventHandler.EventHandlerListener
Modifier and Type | Field and Description |
---|---|
private AssignmentManager |
assignmentManager |
private static org.apache.commons.logging.Log |
LOG |
private MasterServices |
services |
private boolean |
skipTableStateCheck |
private TableLockManager.TableLock |
tableLock |
private TableLockManager |
tableLockManager |
private TableName |
tableName |
eventType, seqids, server, waitingTimeForEvents
Constructor and Description |
---|
EnableTableHandler(MasterServices services,
TableName tableName,
AssignmentManager assignmentManager,
TableLockManager tableLockManager,
boolean skipTableStateCheck) |
EnableTableHandler(Server server,
TableName tableName,
AssignmentManager assignmentManager,
TableLockManager tableLockManager,
boolean skipTableStateCheck) |
Modifier and Type | Method and Description |
---|---|
private void |
handleEnableTable() |
EnableTableHandler |
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.
|
private Map<HRegionInfo,ServerName> |
regionsToAssignWithServerName(List<Pair<HRegionInfo,ServerName>> regionsInMeta) |
private void |
releaseTableLock() |
String |
toString() |
compareTo, getEventType, getInformativeName, getListener, getPriority, getSeqid, handleException, run, setListener
private static final org.apache.commons.logging.Log LOG
private final TableName tableName
private final AssignmentManager assignmentManager
private final TableLockManager tableLockManager
private boolean skipTableStateCheck
private TableLockManager.TableLock tableLock
private MasterServices services
public EnableTableHandler(Server server, TableName tableName, AssignmentManager assignmentManager, TableLockManager tableLockManager, boolean skipTableStateCheck)
public EnableTableHandler(MasterServices services, TableName tableName, AssignmentManager assignmentManager, TableLockManager tableLockManager, boolean skipTableStateCheck)
public EnableTableHandler prepare() throws TableNotFoundException, TableNotDisabledException, IOException
EventHandler
prepare
in class EventHandler
TableNotFoundException
TableNotDisabledException
IOException
public String toString()
toString
in class EventHandler
public void process()
EventHandler
process
in class EventHandler
private void releaseTableLock()
private void handleEnableTable() throws IOException, CoordinatedStateException, InterruptedException
private Map<HRegionInfo,ServerName> regionsToAssignWithServerName(List<Pair<HRegionInfo,ServerName>> regionsInMeta) throws IOException
regionsInMeta
- IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.