|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.RegionServerOperationQueue
public class RegionServerOperationQueue
Keeps up the queue of RegionServerOperation
s.
Has both live queue and a temporary put-aside queue; if processing of the
live todo queue fails for some reason, we'll add the item back on the delay
queue for retry later. Call shutdown()
to effect a cleanup of
queues when done. Listen to this queue by registering
RegionServerOperationListener
s.
registerRegionServerOperationListener(RegionServerOperationListener)
,
unregisterRegionServerOperationListener(RegionServerOperationListener)
Nested Class Summary | |
---|---|
static class |
RegionServerOperationQueue.ProcessingResultCode
Enums returned by process() ; |
Method Summary | |
---|---|
RegionServerOperationQueue.ProcessingResultCode |
process()
Try to get an operation off of the queue and process it. |
void |
put(org.apache.hadoop.hbase.master.RegionServerOperation op)
|
void |
registerRegionServerOperationListener(RegionServerOperationListener l)
|
void |
shutdown()
Clean up the queues. |
boolean |
unregisterRegionServerOperationListener(RegionServerOperationListener l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void put(org.apache.hadoop.hbase.master.RegionServerOperation op)
public RegionServerOperationQueue.ProcessingResultCode process()
RegionServerOperationQueue.ProcessingResultCode.PROCESSED
,
RegionServerOperationQueue.ProcessingResultCode.REQUEUED
,
RegionServerOperationQueue.ProcessingResultCode.REQUEUED_BUT_PROBLEM
public void shutdown()
public void registerRegionServerOperationListener(RegionServerOperationListener l)
l
- Register this listener of RegionServerOperation events.public boolean unregisterRegionServerOperationListener(RegionServerOperationListener l)
l
- Unregister this listener for RegionServerOperation events.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |