Class ProcedureStoreBase
java.lang.Object
org.apache.hadoop.hbase.procedure2.store.ProcedureStoreBase
- All Implemented Interfaces:
ProcedureStore
- Direct Known Subclasses:
NoopProcedureStore
,RegionProcedureStore
,WALProcedureStore
Base class for
ProcedureStore
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore
ProcedureStore.ProcedureIterator, ProcedureStore.ProcedureLoader, ProcedureStore.ProcedureStoreListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CopyOnWriteArrayList<ProcedureStore.ProcedureStoreListener>
private final AtomicBoolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the store is running, otherwise false.void
Add the listener to the notification list.protected final void
protected final void
sendForceUpdateSignal
(long[] procIds) protected final void
protected boolean
setRunning
(boolean isRunning) Change the state to 'isRunning', returns true if the store state was changed, false if the store was already in that state.boolean
Remove the listener from the notification list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore
cleanup, delete, delete, delete, getNumThreads, insert, insert, load, recoverLease, setRunningProcedureCount, start, stop, update
-
Field Details
-
listeners
-
running
-
-
Constructor Details
-
ProcedureStoreBase
public ProcedureStoreBase()
-
-
Method Details
-
setRunning
Change the state to 'isRunning', returns true if the store state was changed, false if the store was already in that state.- Parameters:
isRunning
- the state to set.- Returns:
- true if the store state was changed, otherwise false.
-
isRunning
Description copied from interface:ProcedureStore
Returns true if the store is running, otherwise false.- Specified by:
isRunning
in interfaceProcedureStore
-
registerListener
Description copied from interface:ProcedureStore
Add the listener to the notification list.- Specified by:
registerListener
in interfaceProcedureStore
- Parameters:
listener
- The AssignmentListener to register
-
unregisterListener
Description copied from interface:ProcedureStore
Remove the listener from the notification list.- Specified by:
unregisterListener
in interfaceProcedureStore
- Parameters:
listener
- The AssignmentListener to unregister- Returns:
- true if the listner was in the list and it was removed, otherwise false.
-
sendPostSyncSignal
-
sendAbortProcessSignal
-
sendForceUpdateSignal
-