1
2
3
4
5
6
7
8
9
10
11 package org.eclipse.jgit.transport;
12
13 import java.io.IOException;
14 import java.util.List;
15 import java.util.Set;
16
17 import org.eclipse.jgit.lib.ObjectId;
18 import org.eclipse.jgit.lib.ProgressMonitor;
19 import org.eclipse.jgit.lib.Repository;
20 import org.eclipse.jgit.revwalk.RevWalk;
21
22
23
24
25
26
27
28 public interface ConnectivityChecker {
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 void checkConnectivity(ConnectivityCheckInfo connectivityCheckInfo,
44 Set<ObjectId> haves, ProgressMonitor pm)
45 throws IOException;
46
47
48
49
50
51 public static class ConnectivityCheckInfo {
52 private Repository repository;
53
54 private PackParser parser;
55
56 private boolean checkObjects;
57
58 private List<ReceiveCommand> commands;
59
60 private RevWalk walk;
61
62
63
64
65 public Repository getRepository() {
66 return repository;
67 }
68
69
70
71
72
73 public void setRepository(Repository repository) {
74 this.repository = repository;
75 }
76
77
78
79
80 public PackParser getParser() {
81 return parser;
82 }
83
84
85
86
87
88 public void setParser(PackParser parser) {
89 this.parser = parser;
90 }
91
92
93
94
95 public boolean isCheckObjects() {
96 return checkObjects;
97 }
98
99
100
101
102
103
104 public void setCheckObjects(boolean checkObjects) {
105 this.checkObjects = checkObjects;
106 }
107
108
109
110
111 public List<ReceiveCommand> getCommands() {
112 return commands;
113 }
114
115
116
117
118
119 public void setCommands(List<ReceiveCommand> commands) {
120 this.commands = commands;
121 }
122
123
124
125
126
127 public void setWalk(RevWalk walk) {
128 this.walk = walk;
129 }
130
131
132
133
134 public RevWalk getWalk() {
135 return walk;
136 }
137 }
138 }