Package org.jenkinsci.plugins.gitclient
Class JGitProgressMonitor
java.lang.Object
org.jenkinsci.plugins.gitclient.JGitProgressMonitor
- All Implemented Interfaces:
org.eclipse.jgit.lib.ProgressMonitor
Jenkins implementation of the JGit progress monitoring interface.
Reports progress of JGit operations like fetch and clone to the
Jenkins TaskListener passed to the constructor.
-
Field Summary
Fields inherited from interface org.eclipse.jgit.lib.ProgressMonitor
UNKNOWN
-
Constructor Summary
ConstructorDescriptionJGitProgressMonitor
(TaskListener listener) Constructor for JGitProgressMonitor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endTask()
boolean
void
showDuration
(boolean enabled) void
start
(int totalTasks) void
update
(int completed)
-
Constructor Details
-
JGitProgressMonitor
Constructor for JGitProgressMonitor.- Parameters:
listener
- task listener that will receive progress messages during JGit operations
-
-
Method Details
-
start
public void start(int totalTasks) - Specified by:
start
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
beginTask
- Specified by:
beginTask
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
update
public void update(int completed) - Specified by:
update
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
endTask
public void endTask()- Specified by:
endTask
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
showDuration
public void showDuration(boolean enabled) - Specified by:
showDuration
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.eclipse.jgit.lib.ProgressMonitor
-