Class ProcedureExecutor<Env>
java.lang.Object
org.apache.iotdb.confignode.procedure.ProcedureExecutor<Env>
-
Constructor Summary
ConstructorsConstructorDescriptionProcedureExecutor(Env environment, IProcedureStore<Env> store) ProcedureExecutor(Env environment, IProcedureStore<Env> store, ProcedureScheduler scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInternalProcedure(InternalProcedure interalProcedure) longgetRollbackStack(long rootProcId) getStore()intvoidinit(int numThreads) booleanisFinished(long procId) booleanbooleanisStarted(long procId) voidjoin()booleanremoveInternalProcedure(InternalProcedure internalProcedure) voidstartCompletedCleaner(long cleanTimeInterval, long cleanEvictTTL) voidvoidstop()longsubmitProcedure(Procedure<Env> procedure) Submit a new root-procedure to the executor, called by client.
-
Constructor Details
-
ProcedureExecutor
-
ProcedureExecutor
-
-
Method Details
-
init
public void init(int numThreads) -
startWorkers
public void startWorkers() -
startCompletedCleaner
public void startCompletedCleaner(long cleanTimeInterval, long cleanEvictTTL) -
addInternalProcedure
-
removeInternalProcedure
-
getWorkerThreadCount
public int getWorkerThreadCount() -
getActiveWorkerThreadCount
public long getActiveWorkerThreadCount() -
isRunning
public boolean isRunning() -
stop
public void stop() -
join
public void join() -
isStarted
public boolean isStarted(long procId) -
isFinished
public boolean isFinished(long procId) -
getProcedures
-
submitProcedure
Submit a new root-procedure to the executor, called by client.- Parameters:
procedure- root procedure- Returns:
- procedure id
-
getScheduler
-
getEnvironment
-
getStore
-
getRollbackStack
-