Modifier and Type | Field and Description |
---|---|
protected EventHandler.EventType |
EventHandler.eventType |
Modifier and Type | Method and Description |
---|---|
EventHandler.EventType |
EventHandler.getEventType()
Return the event type
|
EventHandler.EventType |
RegionTransitionData.getEventType()
Gets the type of region transition event.
|
static EventHandler.EventType |
EventHandler.EventType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventHandler.EventType[] |
EventHandler.EventType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
ExecutorService.ExecutorType |
ExecutorService.getExecutorServiceType(EventHandler.EventType type)
Returns the executor service type (the thread pool instance) for the
passed event handler type.
|
void |
ExecutorService.registerListener(EventHandler.EventType type,
EventHandler.EventHandlerListener listener)
Subscribe to updates before and after processing instances of
EventHandler.EventType . |
EventHandler.EventHandlerListener |
ExecutorService.unregisterListener(EventHandler.EventType type)
Stop receiving updates before and after processing instances of
EventHandler.EventType |
Constructor and Description |
---|
EventHandler(Server server,
EventHandler.EventType eventType)
Default base class constructor.
|
RegionTransitionData(EventHandler.EventType eventType,
byte[] regionName)
Construct data for a new region transition event with the specified event
type and region name.
|
RegionTransitionData(EventHandler.EventType eventType,
byte[] regionName,
ServerName origin)
Construct data for a new region transition event with the specified event
type, region name, and server name.
|
RegionTransitionData(EventHandler.EventType eventType,
byte[] regionName,
ServerName serverName,
byte[] payload)
Construct data for a new region transition event with the specified event
type, region name, and server name.
|
Constructor and Description |
---|
TableEventHandler(EventHandler.EventType eventType,
byte[] tableName,
Server server,
MasterServices masterServices) |
Constructor and Description |
---|
CloseRegionHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
boolean abort,
boolean zk,
int versionOfClosingNode,
EventHandler.EventType eventType) |
OpenRegionHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
HTableDescriptor htd,
EventHandler.EventType eventType,
int version) |
Modifier and Type | Method and Description |
---|---|
static void |
ZKAssign.createNodeOffline(ZooKeeperWatcher zkw,
HRegionInfo region,
ServerName serverName,
EventHandler.EventType event) |
static boolean |
ZKAssign.deleteNode(ZooKeeperWatcher zkw,
String regionName,
EventHandler.EventType expectedState)
Deletes an existing unassigned node that is in the specified state for the
specified region.
|
static boolean |
ZKAssign.deleteNode(ZooKeeperWatcher zkw,
String regionName,
EventHandler.EventType expectedState,
int expectedVersion)
Deletes an existing unassigned node that is in the specified state for the
specified region.
|
static int |
ZKAssign.transitionNode(ZooKeeperWatcher zkw,
HRegionInfo region,
ServerName serverName,
EventHandler.EventType beginState,
EventHandler.EventType endState,
int expectedVersion)
Method that actually performs unassigned node transitions.
|
static int |
ZKAssign.transitionNode(ZooKeeperWatcher zkw,
HRegionInfo region,
ServerName serverName,
EventHandler.EventType beginState,
EventHandler.EventType endState,
int expectedVersion,
byte[] payload) |
static int |
ZKAssign.transitionNodeOpening(ZooKeeperWatcher zkw,
HRegionInfo region,
ServerName serverName,
EventHandler.EventType beginState) |
static boolean |
ZKAssign.verifyRegionState(ZooKeeperWatcher zkw,
HRegionInfo region,
EventHandler.EventType expectedState)
Verifies that the specified region is in the specified state in ZooKeeper.
|
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.