Class NoopProcedureStore
java.lang.Object
org.apache.hadoop.hbase.procedure2.store.ProcedureStoreBase
org.apache.hadoop.hbase.procedure2.store.NoopProcedureStore
- All Implemented Interfaces:
ProcedureStore
An In-Memory store that does not keep track of the procedures inserted.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.procedure2.store.ProcedureStore
ProcedureStore.ProcedureIterator, ProcedureStore.ProcedureLoader, ProcedureStore.ProcedureStoreListener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(long procId) The specified procId was removed from the executor, due to completion, abort or failure.void
delete
(long[] procIds, int offset, int count) The specified procIds were removed from the executor, due to completion, abort or failure.void
The parent procedure completed.int
Returns the number of threads/slots passed to start()void
Serialize a set of new procedures.void
When a procedure is submitted to the executor insert(proc, null) will be called.void
load
(ProcedureStore.ProcedureLoader loader) Load the Procedures in the store.void
Acquire the lease for the procedure store.int
setRunningProcedureCount
(int count) Set the number of procedure running.void
start
(int numThreads) Start/Open the procedure storevoid
stop
(boolean abort) Stop/Close the procedure storevoid
The specified procedure was executed, and the new state should be written to the store.Methods inherited from class org.apache.hadoop.hbase.procedure2.store.ProcedureStoreBase
isRunning, registerListener, sendAbortProcessSignal, sendForceUpdateSignal, sendPostSyncSignal, setRunning, unregisterListener
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
-
Field Details
-
numThreads
-
-
Constructor Details
-
NoopProcedureStore
public NoopProcedureStore()
-
-
Method Details
-
start
Description copied from interface:ProcedureStore
Start/Open the procedure store- Parameters:
numThreads
- number of threads to be used by the procedure store- Throws:
IOException
-
stop
Description copied from interface:ProcedureStore
Stop/Close the procedure store- Parameters:
abort
- true if the stop is an abort
-
recoverLease
Description copied from interface:ProcedureStore
Acquire the lease for the procedure store.- Throws:
IOException
-
getNumThreads
Description copied from interface:ProcedureStore
Returns the number of threads/slots passed to start() -
setRunningProcedureCount
Description copied from interface:ProcedureStore
Set the number of procedure running. This can be used, for example, by the store to know how long to wait before a sync.- Returns:
- how many procedures are running (may not be same as
count
).
-
load
Description copied from interface:ProcedureStore
Load the Procedures in the store.- Parameters:
loader
- the ProcedureLoader that will handle the store-load events- Throws:
IOException
-
insert
Description copied from interface:ProcedureStore
When a procedure is submitted to the executor insert(proc, null) will be called. 'proc' has a 'RUNNABLE' state and the initial information required to start up. When a procedure is executed and it returns children insert(proc, subprocs) will be called. 'proc' has a 'WAITING' state and an update state. 'subprocs' are the children in 'RUNNABLE' state with the initial information.- Parameters:
proc
- the procedure to serialize and write to the store.subprocs
- the newly created child of the proc.
-
insert
Description copied from interface:ProcedureStore
Serialize a set of new procedures. These procedures are freshly submitted to the executor and each procedure has a 'RUNNABLE' state and the initial information required to start up.- Parameters:
proc
- the procedures to serialize and write to the store.
-
update
Description copied from interface:ProcedureStore
The specified procedure was executed, and the new state should be written to the store.- Parameters:
proc
- the procedure to serialize and write to the store.
-
delete
Description copied from interface:ProcedureStore
The specified procId was removed from the executor, due to completion, abort or failure. The store implementor should remove all the information about the specified procId.- Parameters:
procId
- the ID of the procedure to remove.
-
delete
Description copied from interface:ProcedureStore
The parent procedure completed. Update the state and mark all the child deleted.- Parameters:
proc
- the parent procedure to serialize and write to the store.subprocs
- the IDs of the sub-procedure to remove.
-
delete
Description copied from interface:ProcedureStore
The specified procIds were removed from the executor, due to completion, abort or failure. The store implementor should remove all the information about the specified procIds.- Parameters:
procIds
- the IDs of the procedures to remove.offset
- the array offset from where to start to deletecount
- the number of IDs to delete
-