|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.executor.HBaseExecutorService
public class HBaseExecutorService
This is a generic HBase executor service. This component abstract a threadpool, a queue to which jobs can be submitted and a Runnable that handles the object that is added to the queue. In order to create a new HBExecutorService, you need to do: HBExecutorService.startExecutorService("myService"); In order to use the service created above, you need to override the HBEventHandler class and create an event type that submits to this service.
Nested Class Summary | |
---|---|
static class |
HBaseExecutorService.HBaseExecutorServiceType
The following is a list of names for the various executor services in both the master and the region server. |
Constructor Summary | |
---|---|
protected |
HBaseExecutorService(String name)
|
Method Summary | |
---|---|
static HBaseExecutorService |
getExecutorService(String name)
This method is an accessor for all the HBExecutorServices running so far addressable by name. |
static boolean |
isExecutorServiceRunning(String name)
|
static void |
shutdown()
|
static void |
startExecutorService(String name)
Start an executor service with a given name. |
void |
submit(Runnable event)
Submit the event to the queue for handling. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HBaseExecutorService(String name)
Method Detail |
---|
public static void startExecutorService(String name)
name
- Name of the service to start.public static boolean isExecutorServiceRunning(String name)
public static HBaseExecutorService getExecutorService(String name)
public static void shutdown()
public void submit(Runnable event)
event
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |