Top Description Fields Constructors Methods
org.eclipse.jgit.transport

public Class PostUploadHookChain

extends Object
implements PostUploadHook
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.transport.PostUploadHook
Imports
java.util.Collections, .List, java.util.stream.Collectors, org.eclipse.jgit.storage.pack.PackStatistics

org.eclipse.jgit.transport.PostUploadHook that delegates to a list of other hooks.

Hooks are run in the order passed to the constructor.

Since
4.1

Field Summary

Modifier and TypeField and Description
private final List<PostUploadHook>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PostUploadHook

Returns:

a new chain of the given hooks.
newChain
(List<PostUploadHook>
hooks to execute, in order.
hooks
)

Create a new hook chaining the given hooks together.

public void
onPostUpload(PackStatistics
the statistics gathered by org.eclipse.jgit.internal.storage.pack.PackWriter for the uploaded pack
stats
)

Implements org.eclipse.jgit.transport.PostUploadHook.onPostUpload.

Notifies the hook that a pack has been sent.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hooksback to summary
private final List<PostUploadHook> hooks

Constructor Detail

PostUploadHookChainback to summary
private PostUploadHookChain(List<PostUploadHook> hooks)

Method Detail

newChainback to summary
public static PostUploadHook newChain(List<PostUploadHook> hooks)

Create a new hook chaining the given hooks together.

Parameters
hooks:List<PostUploadHook>

hooks to execute, in order.

Returns:PostUploadHook

a new chain of the given hooks.

onPostUploadback to summary
public void onPostUpload(PackStatistics stats)

Implements org.eclipse.jgit.transport.PostUploadHook.onPostUpload.

Doc from org.eclipse.jgit.transport.PostUploadHook.onPostUpload.

Notifies the hook that a pack has been sent.

Parameters
stats:PackStatistics

the statistics gathered by org.eclipse.jgit.internal.storage.pack.PackWriter for the uploaded pack

Annotations
@Override