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
ProcedureStores.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore
ProcedureStore.ProcedureIterator, ProcedureStore.ProcedureLoader, ProcedureStore.ProcedureStoreListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CopyOnWriteArrayList<ProcedureStore.ProcedureStoreListener>private final AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the store is running, otherwise false.voidAdd the listener to the notification list.protected final voidprotected final voidsendForceUpdateSignal(long[] procIds) protected final voidprotected booleansetRunning(boolean isRunning) Change the state to 'isRunning', returns true if the store state was changed, false if the store was already in that state.booleanRemove the listener from the notification list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ProcedureStoreReturns true if the store is running, otherwise false.- Specified by:
isRunningin interfaceProcedureStore
-
registerListener
Description copied from interface:ProcedureStoreAdd the listener to the notification list.- Specified by:
registerListenerin interfaceProcedureStore- Parameters:
listener- The AssignmentListener to register
-
unregisterListener
Description copied from interface:ProcedureStoreRemove the listener from the notification list.- Specified by:
unregisterListenerin 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
-