Module org.eclipse.jgit
Class IterativeConnectivityChecker
java.lang.Object
org.eclipse.jgit.internal.transport.connectivity.IterativeConnectivityChecker
- All Implemented Interfaces:
ConnectivityChecker
Implementation of connectivity checker which tries to do check with smaller
set of references first and if it fails will fall back to check against all
advertised references.
This is useful for big repos with enormous number of references.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jgit.transport.ConnectivityChecker
ConnectivityChecker.ConnectivityCheckInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> advertisedHaves, ProgressMonitor pm) Checks connectivity of the commit graph after pack uploading.voidsetForcedHaves(Set<ObjectId> forcedHaves) Sets additional haves that client can depend on (e.g. gerrit changes).
-
Constructor Details
-
IterativeConnectivityChecker
- Parameters:
delegate- Delegate checker which will be called for actual checks.
-
-
Method Details
-
checkConnectivity
public void checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> advertisedHaves, ProgressMonitor pm) throws MissingObjectException, IOException Description copied from interface:ConnectivityCheckerChecks connectivity of the commit graph after pack uploading.- Specified by:
checkConnectivityin interfaceConnectivityChecker- Parameters:
connectivityCheckInfo- Input for the connectivity check.advertisedHaves- Set of references known for client.pm- Monitor to publish progress to.- Throws:
IOException- an error occurred during connectivity checking.MissingObjectException
-
setForcedHaves
Sets additional haves that client can depend on (e.g. gerrit changes).- Parameters:
forcedHaves- Haves server expects client to depend on.
-