public class NoopProcedureStore extends ProcedureStoreBase
ProcedureStore.ProcedureIterator, ProcedureStore.ProcedureLoader, ProcedureStore.ProcedureStoreListener
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.
|
void |
delete(Procedure proc,
long[] subprocs)
The parent procedure completed.
|
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, unregisterListener
public void start(int numThreads) throws IOException
ProcedureStore
IOException
public void stop(boolean abort)
ProcedureStore
abort
- true if the stop is an abortpublic void recoverLease() throws IOException
ProcedureStore
IOException
public int getNumThreads()
public void load(ProcedureStore.ProcedureLoader loader) throws IOException
ProcedureStore
loader
- the ProcedureLoader that will handle the store-load eventsIOException
public void insert(Procedure proc, Procedure[] subprocs)
ProcedureStore
proc
- the procedure to serialize and write to the store.subprocs
- the newly created child of the proc.public void update(Procedure proc)
ProcedureStore
proc
- the procedure to serialize and write to the store.public void delete(long procId)
ProcedureStore
procId
- the ID of the procedure to remove.public void delete(Procedure proc, long[] subprocs)
ProcedureStore
proc
- the parent procedure to serialize and write to the store.subprocs
- the IDs of the sub-procedure to remove.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.