- java.lang.Object
-
- org.eclipse.jgit.transport.PostUploadHookChain
-
- All Implemented Interfaces:
PostUploadHook
public class PostUploadHookChain extends Object implements PostUploadHook
PostUploadHookthat delegates to a list of other hooks.Hooks are run in the order passed to the constructor.
- Since:
- 4.1
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jgit.transport.PostUploadHook
NULL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PostUploadHooknewChain(List<PostUploadHook> hooks)Create a new hook chaining the given hooks together.voidonPostUpload(PackStatistics stats)Notifies the hook that a pack has been sent.
-
-
-
Method Detail
-
newChain
public static PostUploadHook newChain(List<PostUploadHook> hooks)
Create a new hook chaining the given hooks together.- Parameters:
hooks- hooks to execute, in order.- Returns:
- a new chain of the given hooks.
-
onPostUpload
public void onPostUpload(PackStatistics stats)
Notifies the hook that a pack has been sent.- Specified by:
onPostUploadin interfacePostUploadHook- Parameters:
stats- the statistics gathered byPackWriterfor the uploaded pack
-
-