public class NoopProcedureStore extends ProcedureStoreBase
ProcedureStore.ProcedureIterator, ProcedureStore.ProcedureLoader, ProcedureStore.ProcedureStoreListener| Modifier and Type | Field and Description |
|---|---|
private int |
numThreads |
| Constructor and Description |
|---|
NoopProcedureStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(long procId)
The specified procId was removed from the executor,
due to completion, abort or failure.
|
int |
getNumThreads() |
void |
insert(Procedure proc,
Procedure[] subprocs)
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 |
recoverLease()
Acquire the lease for the procedure store.
|
void |
start(int numThreads)
Start/Open the procedure store
|
void |
stop(boolean abort)
Stop/Close the procedure store
|
void |
update(Procedure proc)
The specified procedure was executed,
and the new state should be written to the store.
|
isRunning, registerListener, sendAbortProcessSignal, sendPostSyncSignal, setRunning, unregisterListenerpublic void start(int numThreads)
throws IOException
ProcedureStoreIOExceptionpublic void stop(boolean abort)
ProcedureStoreabort - true if the stop is an abortpublic void recoverLease()
throws IOException
ProcedureStoreIOExceptionpublic int getNumThreads()
public void load(ProcedureStore.ProcedureLoader loader) throws IOException
ProcedureStoreloader - the ProcedureLoader that will handle the store-load eventsIOExceptionpublic void insert(Procedure proc, Procedure[] subprocs)
ProcedureStoreproc - the procedure to serialize and write to the store.subprocs - the newly created child of the proc.public void update(Procedure proc)
ProcedureStoreproc - the procedure to serialize and write to the store.public void delete(long procId)
ProcedureStoreprocId - the ID of the procedure to remove.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.