Class IterativeConnectivityChecker
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.connectivity.IterativeConnectivityChecker
-
- All Implemented Interfaces:
ConnectivityChecker
public class IterativeConnectivityChecker extends Object implements 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 Constructor Description IterativeConnectivityChecker(ConnectivityChecker delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> advertisedHaves, ProgressMonitor pm)
Checks connectivity of the commit graph after pack uploading.void
setForcedHaves(Set<ObjectId> forcedHaves)
Sets additional haves that client can depend on (e.g.
-
-
-
Constructor Detail
-
IterativeConnectivityChecker
public IterativeConnectivityChecker(ConnectivityChecker delegate)
- Parameters:
delegate
- Delegate checker which will be called for actual checks.
-
-
Method Detail
-
checkConnectivity
public void checkConnectivity(ConnectivityChecker.ConnectivityCheckInfo connectivityCheckInfo, Set<ObjectId> advertisedHaves, ProgressMonitor pm) throws MissingObjectException, IOException
Description copied from interface:ConnectivityChecker
Checks connectivity of the commit graph after pack uploading.- Specified by:
checkConnectivity
in 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
-
-