public class DataMapperThreadManager extends Object implements org.jetel.graph.runtime.IThreadManager
| Constructor and Description |
|---|
DataMapperThreadManager(int maxGraphs,
int maxNodes)
Graph executor's constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Future<T> |
execute(Callable<T> callable) |
void |
execute(Runnable runnable) |
<T> Future<T> |
execute(Runnable runnable,
T result) |
void |
executeNode(Runnable node) |
org.jetel.graph.runtime.CloverFuture |
executeWatchDog(org.jetel.graph.runtime.WatchDog watchDog) |
void |
executeWatchDog(org.jetel.graph.runtime.WatchDog watchDog,
FutureCallback<org.jetel.graph.Result> callback) |
void |
free()
Waits for all currently running graphs are already done
and finishes graph executor life cycle.
|
void |
freeNow()
Immediately finishes graph executor life cycle.
|
int |
getFreeThreadsCount() |
void |
initWatchDog(org.jetel.graph.runtime.WatchDog watchDog) |
void |
releaseNodeThreads(int nodeThreadsToRelease) |
public DataMapperThreadManager(int maxGraphs,
int maxNodes)
maxGraphs - maximum number of simultaneously running graphs; zero means without limitmaxNodes - maximum number of simultaneously running nodes; zero means without limitpublic void initWatchDog(org.jetel.graph.runtime.WatchDog watchDog)
initWatchDog in interface org.jetel.graph.runtime.IThreadManagerpublic org.jetel.graph.runtime.CloverFuture executeWatchDog(org.jetel.graph.runtime.WatchDog watchDog)
executeWatchDog in interface org.jetel.graph.runtime.IThreadManagerpublic void executeWatchDog(org.jetel.graph.runtime.WatchDog watchDog,
FutureCallback<org.jetel.graph.Result> callback)
public void executeNode(Runnable node)
executeNode in interface org.jetel.graph.runtime.IThreadManagerpublic void execute(Runnable runnable)
execute in interface org.jetel.graph.runtime.IThreadManagerpublic <T> Future<T> execute(Runnable runnable, T result)
execute in interface org.jetel.graph.runtime.IThreadManagerpublic <T> Future<T> execute(Callable<T> callable)
execute in interface org.jetel.graph.runtime.IThreadManagerpublic int getFreeThreadsCount()
getFreeThreadsCount in interface org.jetel.graph.runtime.IThreadManagerpublic void releaseNodeThreads(int nodeThreadsToRelease)
releaseNodeThreads in interface org.jetel.graph.runtime.IThreadManagerpublic void free()
free in interface org.jetel.graph.runtime.IThreadManagerpublic void freeNow()
freeNow in interface org.jetel.graph.runtime.IThreadManagerCopyright © 2022. All rights reserved.