Class GitCommandsExecutor
- java.lang.Object
-
- org.jenkinsci.plugins.gitclient.cgit.GitCommandsExecutor
-
public class GitCommandsExecutor extends Object
This executor can invoke multiple git commands in parallel using threads.If threads = 1 the caller thread is used. If a git command fails, invocation of all running and not yet started commands is stopped.
-
-
Constructor Summary
Constructors Constructor Description GitCommandsExecutor(int threads, TaskListener listener)
-
-
-
Constructor Detail
-
GitCommandsExecutor
public GitCommandsExecutor(int threads, TaskListener listener)
-
-
Method Detail
-
invokeAll
public <T> void invokeAll(Collection<Callable<T>> commands) throws GitException, InterruptedException
- Throws:
GitException
InterruptedException
-
-